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:
parent
766821b8a3
commit
e0f57801c0
4
rpmqv.c
4
rpmqv.c
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue