summaryrefslogtreecommitdiffstats
path: root/urpm/args.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-28 11:51:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-28 11:51:27 +0000
commit6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0 (patch)
tree87f257079174e32f931205733ed1d97d20fad035 /urpm/args.pm
parent13258c86d966b9bf5abd71a4a892a2c7350d7ff0 (diff)
downloadurpmi-6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0.tar
urpmi-6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0.tar.gz
urpmi-6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0.tar.bz2
urpmi-6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0.tar.xz
urpmi-6dc554230ca73e99fbc1ac5fdd2a3ccd0c9f32e0.zip
- urpmi
o handle changes in priority-upgrade list between old and new urpmi (#32925) nb: keep --no-priority-upgrade since it is passed by older urpmi when restarting
Diffstat (limited to 'urpm/args.pm')
-rw-r--r--urpm/args.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm/args.pm b/urpm/args.pm
index adbb49d9..47dbb1e2 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -92,8 +92,12 @@ my %options_spec = (
'pre-clean!' => sub { $urpm->{options}{'pre-clean'} = $_[1] },
'post-clean!' => sub { $urpm->{options}{'post-clean'} = $_[1] },
'no-priority-upgrade' => sub {
- $urpm->{options}{'priority-upgrade'} = '';
+ #- keep this option which is passed by older urpmi.
+ #- since we can't know what the previous_priority_upgrade list was,
+ #- just use a rubbish value which will mean list has changed
+ $options{previous_priority_upgrade} = 'list_has_changed';
},
+ 'previous-priority-upgrade=s' => \$options{previous_priority_upgrade},
force => \$::force,
justdb => \$options{justdb},
replacepkgs => \$options{replacepkgs},