summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 06:29:38 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 06:29:38 +0000
commit204480447ce4d4c09db3f4dc4ea31b2364faea09 (patch)
tree4a4aeb39e1c65cd9b554eaef82255da169be9850
parent2d12c686d5f82591029ca3c9f73a12807bb8504f (diff)
downloadurpmi-204480447ce4d4c09db3f4dc4ea31b2364faea09.tar
urpmi-204480447ce4d4c09db3f4dc4ea31b2364faea09.tar.gz
urpmi-204480447ce4d4c09db3f4dc4ea31b2364faea09.tar.bz2
urpmi-204480447ce4d4c09db3f4dc4ea31b2364faea09.tar.xz
urpmi-204480447ce4d4c09db3f4dc4ea31b2364faea09.zip
Skip empty entries
-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.