diff options
author | Francois Pons <fpons@mandriva.com> | 2002-08-26 18:29:31 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-08-26 18:29:31 +0000 |
commit | 7860a9828ba608e67bff059f77d53370a400b569 (patch) | |
tree | 4ffb2db20547509f9fae6cb91254a492ef9b018b /URPM.xs | |
parent | ab3408fe242a4213474eff67085d5509367babda (diff) | |
download | perl-URPM-7860a9828ba608e67bff059f77d53370a400b569.tar perl-URPM-7860a9828ba608e67bff059f77d53370a400b569.tar.gz perl-URPM-7860a9828ba608e67bff059f77d53370a400b569.tar.bz2 perl-URPM-7860a9828ba608e67bff059f77d53370a400b569.tar.xz perl-URPM-7860a9828ba608e67bff059f77d53370a400b569.zip |
0.70-2mdk
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1975,7 +1975,9 @@ Trans_run(trans, data, ...) STRLEN len; char *s = SvPV(ST(i), len); - if (len == 5) { + if (len == 4 && !memcmp(s, "test", 4)) { + if (SvIV(ST(i+1))) transFlags |= RPMTRANS_FLAG_TEST; + } else if (len == 5) { if (!memcmp(s, "force", 5)) { if (SvIV(ST(i+1))) probFilter |= (RPMPROB_FILTER_REPLACEPKG | RPMPROB_FILTER_REPLACEOLDFILES | @@ -1985,6 +1987,8 @@ 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 == 10 && !memcmp(s, "oldpackage", 10)) { + if (SvIV(ST(i+1))) probFilter |= RPMPROB_FILTER_OLDPACKAGE; } else if (len == 17 && !memcmp(s, "translate_message", 17)) translate_message = 1; else if (len >= 9 && !memcmp(s, "callback_", 9)) { |