summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index be89cdf1..dd2ba957 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -95,6 +95,7 @@ if (my ($prefix, $dir) = $url =~ m,^(removable_.*?|file):/(.*),) {
if (-e $f) {
system("cp -f $f $HDLIST");
} else {
+ glob("$dir/*") or die "No RPM-s found! Cowardly refusing to add $dir to urpmi DB.\n";
system("genhdlist_cz2 -o $HDLIST $dir");
}
} else {