summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 6791d11c..0c55331a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1267,7 +1267,7 @@ this could happen if you mounted manually the directory when creating the medium
#- an error occured (provided there are files in input.)
delete $medium->{start};
delete $medium->{end};
- die "no rpms read\n";
+ $urpm->{fatal}(9, N("no rpms read"));
} else {
#- make sure the headers will not be removed for another media.
$clean_cache = 0;
@@ -1283,6 +1283,7 @@ this could happen if you mounted manually the directory when creating the medium
} else {
$error = 1;
$urpm->{error}(N("no rpm files found from [%s]", $dir));
+ $medium->{ignore} = 1;
}
}
}