summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 19:40:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 19:40:29 +0000
commit6a60f111b358813aa0744655c1360215ea28b55c (patch)
tree1d592be9f10ff81633ab51de3e4a42a6cdb117e4 /urpm/removable.pm
parent8aead2a45cdd1c6a88ebed575319f0c434a286b2 (diff)
downloadurpmi-6a60f111b358813aa0744655c1360215ea28b55c.tar
urpmi-6a60f111b358813aa0744655c1360215ea28b55c.tar.gz
urpmi-6a60f111b358813aa0744655c1360215ea28b55c.tar.bz2
urpmi-6a60f111b358813aa0744655c1360215ea28b55c.tar.xz
urpmi-6a60f111b358813aa0744655c1360215ea28b55c.zip
simplify
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 0298e083..55078103 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -91,8 +91,7 @@ sub _check_notfound {
my $dir_ = file_from_local_url($_) or next;
$dir_ =~ m!/.*/! or next; #- is this really needed??
if (!$dir) {
- $dir = $dir_;
- try_mounting($urpm, $dir, $removable);
+ try_mounting($urpm, $dir_, $removable);
}
-r $dir_ or return 1;
}