summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index de890ae0..5c7d719a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -226,6 +226,7 @@ sub probe_medium {
}
}
$medium->{url} ||= $medium->{clear_url};
+ $medium->{removable} ||= $medium->{url} =~ /^removable_([^_:]*)(?:_[^:]*)?:/ && "/dev/$1";
$medium;
}