aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-01 15:43:24 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-01 15:43:24 +0000
commita911285c2c2f99051e50d883fc768b1380b00568 (patch)
treec569e28b296147622a08cf45d0d06a1c9ca6e2e6 /URPM.xs
parentff60b40f11e1c8881c9a01b34570c451ce6c8ead (diff)
downloadperl-URPM-a911285c2c2f99051e50d883fc768b1380b00568.tar
perl-URPM-a911285c2c2f99051e50d883fc768b1380b00568.tar.gz
perl-URPM-a911285c2c2f99051e50d883fc768b1380b00568.tar.bz2
perl-URPM-a911285c2c2f99051e50d883fc768b1380b00568.tar.xz
perl-URPM-a911285c2c2f99051e50d883fc768b1380b00568.zip
Add a "noscripts" option to run transactions. Inhibits pre, preun, post and
postun scritps.
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs8
1 files changed, 7 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 6762c08..840a0ea 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2935,7 +2935,7 @@ Trans_run(trans, data, ...)
if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_NODOCS;
} else if (len == 5) {
if (!memcmp(s, "force", 5)) {
- if (SvIV(ST(i+1))) probFilter |= (RPMPROB_FILTER_REPLACEPKG |
+ if (SvIV(ST(i+1))) probFilter |= (RPMPROB_FILTER_REPLACEPKG |
RPMPROB_FILTER_REPLACEOLDFILES |
RPMPROB_FILTER_REPLACENEWFILES |
RPMPROB_FILTER_OLDPACKAGE);
@@ -2943,6 +2943,12 @@ Trans_run(trans, data, ...)
td.min_delta = SvIV(ST(i+1));
} else if (len == 6 && !memcmp(s, "nosize", 6)) {
if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_DISKSPACE;
+ } else if (len == 9 && !memcmp(s, "noscripts", 9)) {
+ if (SvIV(ST(i+1))) transFlags |= (RPMTRANS_FLAG_NOSCRIPTS |
+ RPMTRANS_FLAG_NOPRE |
+ RPMTRANS_FLAG_NOPREUN |
+ RPMTRANS_FLAG_NOPOST |
+ RPMTRANS_FLAG_NOPOSTUN );
} else if (len == 10 && !memcmp(s, "oldpackage", 10)) {
if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE;
} else if (len == 17 && !memcmp(s, "translate_message", 17))