summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-01 11:50:14 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-01 11:50:14 +0000
commit6b0cb86cdbeda58f178ba192f859524c172e61e1 (patch)
treeaafa08989da44e0955652641ec8fea309b26aad9 /urpm.pm
parentd8e3cc458601dfb9f3486f95234e2605165d18aa (diff)
downloadurpmi-6b0cb86cdbeda58f178ba192f859524c172e61e1.tar
urpmi-6b0cb86cdbeda58f178ba192f859524c172e61e1.tar.gz
urpmi-6b0cb86cdbeda58f178ba192f859524c172e61e1.tar.bz2
urpmi-6b0cb86cdbeda58f178ba192f859524c172e61e1.tar.xz
urpmi-6b0cb86cdbeda58f178ba192f859524c172e61e1.zip
Silence a warning
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 ef894378..bc22ac48 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2307,7 +2307,7 @@ sub get_packages_list {
my $val = [];
local $_;
open my $f, $file or return {};
- foreach (<$f>, split /,/, $extra) {
+ foreach (<$f>, split /,/, $extra || '') {
chomp; s/#.*$//; s/^\s*//; s/\s*$//;
push @$val, $_;
}