summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 05:17:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-06-03 05:17:46 +0000
commit9fc65c56a57d186f395a8dcc5b1228dd359d8a69 (patch)
treea2420689f47d2cc890cea3a3dc8657101519528c /urpm.pm
parent15da7e2edeecce18a846a15d81baf2f0fd389d0e (diff)
downloadurpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar
urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.gz
urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.bz2
urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.tar.xz
urpmi-9fc65c56a57d186f395a8dcc5b1228dd359d8a69.zip
Small simplification
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 68165464..3b68e791 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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) {