diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-03 06:09:16 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-03 06:09:16 +0000 |
commit | d882e08dadcffd058fc6fda3d722b1b45f5e67a2 (patch) | |
tree | 26afbd4484454cf93092be1ea0a21e2e131e9e51 | |
parent | 9fc65c56a57d186f395a8dcc5b1228dd359d8a69 (diff) | |
download | urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.gz urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.bz2 urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.tar.xz urpmi-d882e08dadcffd058fc6fda3d722b1b45f5e67a2.zip |
Missing chomp
-rw-r--r-- | urpm.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 { |