summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-21 01:16:02 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-21 01:16:02 +0000
commitb3f81a28cee27efe9355c43be040df8841bf55e6 (patch)
tree2c87a86abbe4607adbf5b657eba76d6558e6e036
parent0010e91dbd307dceabdbe161cdace44f4349f05d (diff)
downloadurpmi-b3f81a28cee27efe9355c43be040df8841bf55e6.tar
urpmi-b3f81a28cee27efe9355c43be040df8841bf55e6.tar.gz
urpmi-b3f81a28cee27efe9355c43be040df8841bf55e6.tar.bz2
urpmi-b3f81a28cee27efe9355c43be040df8841bf55e6.tar.xz
urpmi-b3f81a28cee27efe9355c43be040df8841bf55e6.zip
Ignore empty lines in skiplist
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index f25f8735..ab545aa9 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2369,6 +2369,7 @@ sub get_packages_list {
open my $f, $file or return {};
foreach (<$f>, split /,/, $extra || '') {
chomp; s/#.*$//; s/^\s*//; s/\s*$//;
+ next if $_ eq '';
push @$val, $_;
}
close $f;