summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-11 13:54:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-11 13:54:06 +0000
commit17b0430c6874dfd896135ece7f317992134dbee3 (patch)
treeeb727834cea0e1e37fb82fd2a6732c50142fb1e2 /urpm/media.pm
parenta683954484cacf40286dc7f2736ef92cec6328d9 (diff)
downloadurpmi-17b0430c6874dfd896135ece7f317992134dbee3.tar
urpmi-17b0430c6874dfd896135ece7f317992134dbee3.tar.gz
urpmi-17b0430c6874dfd896135ece7f317992134dbee3.tar.bz2
urpmi-17b0430c6874dfd896135ece7f317992134dbee3.tar.xz
urpmi-17b0430c6874dfd896135ece7f317992134dbee3.zip
allow using --skip even if skip.list file is missing
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 883e5dce..db99910f 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -1867,7 +1867,7 @@ sub clean {
sub get_packages_list {
my ($file, $o_extra) = @_;
my $val = [];
- open(my $f, '<', $file) or return [];
+ open(my $f, '<', $file);
foreach (<$f>, split /,/, $o_extra || '') {
chomp; s/#.*$//; s/^\s*//; s/\s*$//;
next if $_ eq '';