summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-08-22 08:23:22 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-08-22 08:23:22 +0000
commit936c7b202cdbd040bc78e73403aff5d09428549e (patch)
treea46713af6434035475a6c65b052cbde036896cb3
parent295e4b5cbb2b4b986e335ccdb766ea834566b1fc (diff)
downloadurpmi-936c7b202cdbd040bc78e73403aff5d09428549e.tar
urpmi-936c7b202cdbd040bc78e73403aff5d09428549e.tar.gz
urpmi-936c7b202cdbd040bc78e73403aff5d09428549e.tar.bz2
urpmi-936c7b202cdbd040bc78e73403aff5d09428549e.tar.xz
urpmi-936c7b202cdbd040bc78e73403aff5d09428549e.zip
Bad return type if skip.list or inst.list is not here
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index c3a7458a..23ab989e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2365,7 +2365,7 @@ sub create_transaction {
sub get_packages_list {
my ($file, $extra) = @_;
my $val = [];
- open my $f, $file or return {};
+ open my $f, $file or return [];
foreach (<$f>, split /,/, $extra || '') {
chomp; s/#.*$//; s/^\s*//; s/\s*$//;
next if $_ eq '';