summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-12 11:40:40 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-09-12 11:40:40 +0000
commit813fe8304abeeb4072d96793ff0452c91f0afa54 (patch)
treeab6404eec9f4ddc3c1928cc10ff0ea86b5b20483 /urpm.pm
parentb60c1ac92239c795121810c85fc58f1b0238a7c2 (diff)
downloadurpmi-813fe8304abeeb4072d96793ff0452c91f0afa54.tar
urpmi-813fe8304abeeb4072d96793ff0452c91f0afa54.tar.gz
urpmi-813fe8304abeeb4072d96793ff0452c91f0afa54.tar.bz2
urpmi-813fe8304abeeb4072d96793ff0452c91f0afa54.tar.xz
urpmi-813fe8304abeeb4072d96793ff0452c91f0afa54.zip
From urpm::configure(), we need to be able to distinguish media that are
temporarily ignored and permanently ignored, so we can restore the previous situation easily (bug #22354)
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index a526c011..6771a7af 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -526,7 +526,7 @@ sub configure {
$urpm->select_media(split /,/, $options{media});
foreach (grep { !$_->{modified} } @{$urpm->{media} || []}) {
#- this is only a local ignore that will not be saved.
- $_->{ignore} = 1;
+ $_->{tempignore} = $_->{ignore} = 1;
}
}
if ($options{searchmedia}) {
@@ -543,7 +543,7 @@ sub configure {
$urpm->select_media(split /,/, $options{excludemedia});
foreach (grep { $_->{modified} } @{$urpm->{media} || []}) {
#- this is only a local ignore that will not be saved.
- $_->{ignore} = 1;
+ $_->{tempignore} = $_->{ignore} = 1;
}
}
if ($options{sortmedia}) {