aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 12:57:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 12:57:02 +0000
commite9498f154585edf96443fc02be0957c727a33a48 (patch)
treee1ccc8d4ea5f4cc87d628e3f404b8fcc1a41e157
parent5c59932a4ee313d578d1c74486b231e2eace6aef (diff)
downloadperl-URPM-e9498f154585edf96443fc02be0957c727a33a48.tar
perl-URPM-e9498f154585edf96443fc02be0957c727a33a48.tar.gz
perl-URPM-e9498f154585edf96443fc02be0957c727a33a48.tar.bz2
perl-URPM-e9498f154585edf96443fc02be0957c727a33a48.tar.xz
perl-URPM-e9498f154585edf96443fc02be0957c727a33a48.zip
Add repackage flag to run transactions
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 2c5e7ab..3ae2213 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2954,6 +2954,8 @@ Trans_run(trans, data, ...)
RPMTRANS_FLAG_NOPOSTUN );
} else if (len == 10 && !memcmp(s, "oldpackage", 10)) {
if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE;
+ } else if (len == 9 && !memcmp(s, "repackage", 9)) {
+ if (SvIV(ST(i+1))) probFilter |= RPMTRANS_FLAG_REPACKAGE;
} else if (len == 17 && !memcmp(s, "translate_message", 17))
translate_message = 1;
else if (len >= 9 && !memcmp(s, "callback_", 9)) {