summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-08-31 16:55:19 +0000
committerFrancois Pons <fpons@mandriva.com>2001-08-31 16:55:19 +0000
commit7b0322c61a1cb7c74d336d632517adf71e8b4007 (patch)
tree4b6b9bfc6cf4cceb4114516b0e12d2f55922faeb /urpmi
parent208dd419e893585baae8b22ebebbd030931bd37c (diff)
downloadurpmi-7b0322c61a1cb7c74d336d632517adf71e8b4007.tar
urpmi-7b0322c61a1cb7c74d336d632517adf71e8b4007.tar.gz
urpmi-7b0322c61a1cb7c74d336d632517adf71e8b4007.tar.bz2
urpmi-7b0322c61a1cb7c74d336d632517adf71e8b4007.tar.xz
urpmi-7b0322c61a1cb7c74d336d632517adf71e8b4007.zip
added option to manage install in auto mode but still allowing to ask user to
change CD: --allow-medium-change
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 0c1c9e01..927db389 100755
--- a/urpmi
+++ b/urpmi
@@ -25,6 +25,7 @@ import urpm _;
#- default options.
my $update = 0;
my $auto = 0;
+my $allow_medium_change = 0;
my $auto_select = 0;
my $force = 0;
my $X = 0;
@@ -77,6 +78,7 @@ for (@ARGV) {
/^--help$/ and do { usage; next };
/^--update$/ and do { $update = 1; next };
/^--auto$/ and do { $auto = 1; next };
+ /^--allow-medium-change$/ and do { $allow_medium_change = 1; next };
/^--auto-select$/ and do { $auto_select = 1; $minimal = 0; next };
/^--force$/ and do { $force = 1; next };
/^--X$/ and do { $X = 1; next };
@@ -268,7 +270,7 @@ foreach (@$local_to_removes) {
}
my @sources = $urpm->upload_source_packages($local_sources, $list, ($X ? '' : 'force_local'), sub {
- $auto and return; #- always refuse if automatic.
+ $auto && !$allow_medium_change and return; #- always refuse if automatic only.
my $msg = _("Please insert the medium named \"%s\" on device [%s]", @_);
my $msg2 = _("Press enter when it's done...");
if ($X) {