aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 10:22:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-13 10:22:51 +0000
commitd0740a3e9a9c9cc2b190b4cadc7d4168d3f68584 (patch)
treeb11660202703552bb0f5234fec3e602b5acbb875
parentdb17096a2b06f0e152cc65daa417e9bc22498f20 (diff)
downloadperl-URPM-d0740a3e9a9c9cc2b190b4cadc7d4168d3f68584.tar
perl-URPM-d0740a3e9a9c9cc2b190b4cadc7d4168d3f68584.tar.gz
perl-URPM-d0740a3e9a9c9cc2b190b4cadc7d4168d3f68584.tar.bz2
perl-URPM-d0740a3e9a9c9cc2b190b4cadc7d4168d3f68584.tar.xz
perl-URPM-d0740a3e9a9c9cc2b190b4cadc7d4168d3f68584.zip
Add ignorearch option to run transactions
-rw-r--r--URPM.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 614d9b6..07e1f2a 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2964,6 +2964,8 @@ Trans_run(trans, data, ...)
if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE;
} else if (len == 9 && !memcmp(s, "repackage", 9)) {
if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_REPACKAGE;
+ } else if (len == 10 && !memcmp(s, "ignorearch", 10)) {
+ if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_IGNOREARCH;
} else if (len == 17 && !memcmp(s, "translate_message", 17))
translate_message = 1;
else if (len >= 9 && !memcmp(s, "callback_", 9)) {