summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:30:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:30:52 +0000
commit9b9b640926d329e32205b41d77e12805f666b638 (patch)
tree8a93576971281d0207c523603612a63025fd55b5 /urpm/removable.pm
parentb102eaf10b8c90396527e72a6152b0ee1491e467 (diff)
downloadurpmi-9b9b640926d329e32205b41d77e12805f666b638.tar
urpmi-9b9b640926d329e32205b41d77e12805f666b638.tar.gz
urpmi-9b9b640926d329e32205b41d77e12805f666b638.tar.bz2
urpmi-9b9b640926d329e32205b41d77e12805f666b638.tar.xz
urpmi-9b9b640926d329e32205b41d77e12805f666b638.zip
cleanup
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm2
1 files changed, 1 insertions, 1 deletions
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") &&