summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:54:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:54:36 +0000
commite0c2462f94c7bada64cf9d746839202929d2ef4b (patch)
tree761811dee6ca77ce435f05a381cb10786566d3d3
parent66613b37f254e96b63fe807a9b434dcadc3e5cb3 (diff)
downloadurpmi-e0c2462f94c7bada64cf9d746839202929d2ef4b.tar
urpmi-e0c2462f94c7bada64cf9d746839202929d2ef4b.tar.gz
urpmi-e0c2462f94c7bada64cf9d746839202929d2ef4b.tar.bz2
urpmi-e0c2462f94c7bada64cf9d746839202929d2ef4b.tar.xz
urpmi-e0c2462f94c7bada64cf9d746839202929d2ef4b.zip
factorise
-rw-r--r--urpm/removable.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 569724f2..2e0c4ff9 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -87,7 +87,6 @@ sub _check_notfound {
-e $dir or return 2;
}
foreach (values %$medium_list) {
- chomp;
my $dir_ = _filepath($_) or next;
if (!$dir) {
$dir = $dir_;
@@ -135,6 +134,7 @@ sub _mount_it {
sub _filepath {
my ($url) = @_;
+ chomp $url;
my $filepath = file_from_local_url($url) or return;
$filepath =~ m!/.*/! or return; #- is this really needed??
$filepath;
@@ -149,7 +149,6 @@ sub _examine_removable_medium_ {
if (-e $dir) {
while (my ($i, $url) = each %$medium_list) {
- chomp $url;
my $filepath = _filepath($url) or next;
if (-r $filepath) {