summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 06:09:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 06:09:16 +0000
commitd882e08dadcffd058fc6fda3d722b1b45f5e67a2 (patch)
tree26afbd4484454cf93092be1ea0a21e2e131e9e51
parent9fc65c56a57d186f395a8dcc5b1228dd359d8a69 (diff)
downloadurpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar
urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.gz
urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.bz2
urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.xz
urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.zip
Missing chomp
-rw-r--r--urpm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 3b68e791..011b2b56 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2452,14 +2452,15 @@ sub get_source_packages {
my $fh = $urpm->open_safe('<', $file);
if ($fh) {
while (<$fh>) {
+ chomp;
if (my ($filename) = m|/([^/]*\.rpm)$|) {
if (keys(%{$file2fullnames{$filename} || {}}) > 1) {
$urpm->{error}(N("there are multiple packages with the same rpm filename \"%s\"", $filename));
next;
} elsif (keys(%{$file2fullnames{$filename} || {}}) == 1) {
my ($fullname) = keys(%{$file2fullnames{$filename} || {}});
- defined($id = $fullname2id{$fullname}) and $sources{$id} =
- $medium->{virtual} ? "$medium->{url}/$_" : $_;
+ defined($id = $fullname2id{$fullname})
+ and $sources{$id} = $medium->{virtual} ? "$medium->{url}/$_" : $_;
$list_examined{$fullname} = $examined{$fullname} = undef;
}
} else {