summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-27 18:40:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-27 18:40:33 +0000
commit957dc123bd75ac12de9be0bb619ff1718b470098 (patch)
tree0309faf71c9b7aa671e8b2dfe197522ba3783a7b /urpm
parent42c53d9d96f4c9691d0216c3beb92a8258edec20 (diff)
downloadurpmi-957dc123bd75ac12de9be0bb619ff1718b470098.tar
urpmi-957dc123bd75ac12de9be0bb619ff1718b470098.tar.gz
urpmi-957dc123bd75ac12de9be0bb619ff1718b470098.tar.bz2
urpmi-957dc123bd75ac12de9be0bb619ff1718b470098.tar.xz
urpmi-957dc123bd75ac12de9be0bb619ff1718b470098.zip
fix typo
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 3a3326d6..ff45f922 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1009,7 +1009,7 @@ sub reconfig_urpmi {
}
}
#- check that the new url exists before committing changes (local mirrors)
- my $file = file_from_local_url($medium->{$k});
+ my $file = urpm::file_from_local_url($medium->{$k});
if ($file && !-e $file) {
%$medium = %orig;
$reconfigured = 0;
@@ -1528,7 +1528,7 @@ sub _update_media__handle_some_flags {
$medium->{modified} = 0;
} elsif ($all) {
#- if we're rebuilding all media, mark them as modified (except removable ones)
- $medium->{modified} ||= !($medium->{url} && $medium->{url} =~ m!^removable!);
+ $medium->{modified} ||= !urpm::is_cdrom_url($medium->{url}) && !$medium->{iso};
}
}
}