From 9b9b640926d329e32205b41d77e12805f666b638 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 26 Feb 2008 19:30:52 +0000 Subject: cleanup --- urpm/removable.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm/removable.pm') diff --git a/urpm/removable.pm b/urpm/removable.pm index 888eb079..7e1a15c5 100644 --- a/urpm/removable.pm +++ b/urpm/removable.pm @@ -120,12 +120,12 @@ sub _examine_removable_medium { chomp $url; my $filepath = file_from_local_url($url) or next; $filepath =~ m!/.*/! or next; #- is this really needed?? - my $filename = basename($filepath); if (-r $filepath) { #- we should assume a possibly buggy removable device... #- First, copy in partial cache, and if the package is still good, #- transfer it to the rpms cache. + my $filename = basename($filepath); unlink "$urpm->{cachedir}/partial/$filename"; $urpm->{log}("copying $filepath"); if (copy_and_own($filepath, "$urpm->{cachedir}/partial/$filename") && -- cgit v1.2.1