summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-05-30 11:36:23 +0000
committerFrancois Pons <fpons@mandriva.com>2001-05-30 11:36:23 +0000
commit7206ec1e058eee304bcda3f1a83728f7c51cc4bb (patch)
tree61776c79e22b4882561d0017a92f407562e5b807
parent4b551acfc3b4a06d5ec610b031a2fe5b6c2181cf (diff)
downloadurpmi-7206ec1e058eee304bcda3f1a83728f7c51cc4bb.tar
urpmi-7206ec1e058eee304bcda3f1a83728f7c51cc4bb.tar.gz
urpmi-7206ec1e058eee304bcda3f1a83728f7c51cc4bb.tar.bz2
urpmi-7206ec1e058eee304bcda3f1a83728f7c51cc4bb.tar.xz
urpmi-7206ec1e058eee304bcda3f1a83728f7c51cc4bb.zip
make sure --auto disable medium change which are always refused in such case.
-rwxr-xr-xurpmi1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 6bc2d1b8..61f3bfd1 100755
--- a/urpmi
+++ b/urpmi
@@ -264,6 +264,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.
my $msg = sprintf(_("Please insert the medium named \"%s\" on device [%s]"), @_);
my $msg2 = _("Press enter when it's done...");
if ($X) {