summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-14 17:18:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-14 17:18:56 +0000
commit52ab56d052cad845c9c9f037277f562d02872e25 (patch)
tree2e961e9dfe96e8ae1b7d0b14439c43310eef55c3 /urpm.pm
parentfbbf710243b711524f1b86d14799659e2d9c3847 (diff)
downloadurpmi-52ab56d052cad845c9c9f037277f562d02872e25.tar
urpmi-52ab56d052cad845c9c9f037277f562d02872e25.tar.gz
urpmi-52ab56d052cad845c9c9f037277f562d02872e25.tar.bz2
urpmi-52ab56d052cad845c9c9f037277f562d02872e25.tar.xz
urpmi-52ab56d052cad845c9c9f037277f562d02872e25.zip
simplify
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index 242ac31f..4efe4425 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2456,14 +2456,12 @@ sub get_source_packages {
if ($dh) {
while (defined(my $filename = readdir $dh)) {
my $filepath = "$urpm->{cachedir}/rpms/$filename";
- next if -d $filepath;
-
- if ($options{clean_all} || ! -s _) {
+ if (-d $filepath) {
+ } elsif ($options{clean_all} || ! -s _) {
unlink $filepath; #- this file should be removed or is already empty.
} else {
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} || {}});
if (defined(my $id = delete $fullname2id{$fullname})) {