Permit --noscripts on verify (to disable %verifyscript execution)

- this used to work but got broken by the rpmi/rpmq/... unification
This commit is contained in:
Panu Matilainen 2008-12-18 09:51:37 +02:00
parent 766821b8a3
commit e0f57801c0
1 changed files with 2 additions and 2 deletions

View File

@ -460,12 +460,12 @@ int main(int argc, char *argv[])
argerror(_("--justdb may only be specified during package "
"installation and erasure"));
if (bigMode != MODE_INSTALL && bigMode != MODE_ERASE &&
if (bigMode != MODE_INSTALL && bigMode != MODE_ERASE && bigMode != MODE_VERIFY &&
(ia->transFlags & (RPMTRANS_FLAG_NOSCRIPTS | _noTransScripts | _noTransTriggers)))
argerror(_("script disabling options may only be specified during "
"package installation and erasure"));
if (bigMode != MODE_INSTALL && bigMode != MODE_ERASE &&
if (bigMode != MODE_INSTALL && bigMode != MODE_ERASE && bigMode != MODE_VERIFY &&
(ia->transFlags & (RPMTRANS_FLAG_NOTRIGGERS | _noTransTriggers)))
argerror(_("trigger disabling options may only be specified during "
"package installation and erasure"));