summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
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 {