summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-03 15:11:55 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-03 15:11:55 +0000
commit2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07 (patch)
treecaacba0c3f885fcd37e543a4c54b2c8ee1553a5d
parent279239e83eada658beab6ca8c23f3bb1aa47ca95 (diff)
downloadurpmi-2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07.tar
urpmi-2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07.tar.gz
urpmi-2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07.tar.bz2
urpmi-2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07.tar.xz
urpmi-2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07.zip
handle --allow-medium-change (needed for do_pkgs)
-rw-r--r--NEWS1
-rw-r--r--urpm/args.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index da362894..7d603c85 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@
o fix --auto-select option
o fix --root option
o handle --expect-install
+ o handle --allow-medium-change
o reuse common shared code of urpmi
- urpmf, urpmq:
o never display raw downloader output, otherwise output is very messy (#38125)
diff --git a/urpm/args.pm b/urpm/args.pm
index 8131d0cc..62b9c8f0 100644
--- a/urpm/args.pm
+++ b/urpm/args.pm
@@ -62,6 +62,8 @@ my %options_spec = (
gurpmi => {
auto => sub { $urpm->{options}{auto} = 1 },
'auto-select' => \$::auto_select,
+ # actually ignored (only for compat with do_pkgs), copy_removable() callback is always given:
+ 'allow-medium-change' => \$::allow_medium_change,
'expect-install!' => \$::urpm::main_loop::expect_install,
'media|mediums=s' => sub { $urpm->{options}{media} = 1 },
"help|h" => sub { gurpmi::usage() },