From 2bda6c7a9d5b16ba26ee71e4459a4dcc9deb8a07 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Mar 2008 15:11:55 +0000 Subject: handle --allow-medium-change (needed for do_pkgs) --- NEWS | 1 + urpm/args.pm | 2 ++ 2 files changed, 3 insertions(+) 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() }, -- cgit v1.2.1