summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 07:12:04 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 07:12:04 +0000
commitb93ada182dd9bb850328810ad2bc0af14bd7e2a0 (patch)
tree291b3506599a93b6341ca6083283ee4428228b45 /urpm.pm
parent204480447ce4d4c09db3f4dc4ea31b2364faea09 (diff)
downloadurpmi-b93ada182dd9bb850328810ad2bc0af14bd7e2a0.tar
urpmi-b93ada182dd9bb850328810ad2bc0af14bd7e2a0.tar.gz
urpmi-b93ada182dd9bb850328810ad2bc0af14bd7e2a0.tar.bz2
urpmi-b93ada182dd9bb850328810ad2bc0af14bd7e2a0.tar.xz
urpmi-b93ada182dd9bb850328810ad2bc0af14bd7e2a0.zip
This wasn't a good idea
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index b8282a92..f70ea7bf 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2498,7 +2498,7 @@ sub get_source_packages {
$urpm->{error}(N("medium \"%s\" does not define any location for rpm files", $medium->{name}));
}
}
- push @list, \%sources if keys %sources;
+ push @list, \%sources;
}
#- examine package list to see if a package has not been found.
@@ -2622,7 +2622,8 @@ sub copy_packages_of_removable_media {
my %removables;
#- make sure everything is correct on input...
- @{$urpm->{media} || []} == @$list or return;
+ $urpm->{media} or return;
+ @{$urpm->{media}} == @$list or return;
#- examine if given medium is already inside a removable device.
my $check_notfound = sub {