diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-03 05:17:46 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-06-03 05:17:46 +0000 |
commit | 9fc65c56a57d186f395a8dcc5b1228dd359d8a69 (patch) | |
tree | a2420689f47d2cc890cea3a3dc8657101519528c | |
parent | 15da7e2edeecce18a846a15d81baf2f0fd389d0e (diff) | |
download | urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.gz urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.bz2 urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.xz urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.zip |
Small simplification
-rw-r--r-- | urpm.pm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2404,7 +2404,8 @@ sub get_source_packages { my $dh = $urpm->opendir_safe("$urpm->{cachedir}/rpms"); if ($dh) { while (defined($_ = readdir $dh)) { - if (my ($filename) = m|^([^/]*\.rpm)$|) { + if (/\.rpm$/) { + my $filename = $_; my $filepath = "$urpm->{cachedir}/rpms/$filename"; if (!$options{clean_all} && -s $filepath) { if (keys(%{$file2fullnames{$filename} || {}}) > 1) { |