summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 2e5ef4f2..b8282a92 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;
+ push @list, \%sources if keys %sources;
}
#- examine package list to see if a package has not been found.