summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-09 13:25:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-09 13:25:51 +0000
commit0a039580760aba7aba89710f6c370396e64d3f59 (patch)
tree4471c6045bc275efbaeeae0840cf51dfaa193a3a
parent6de94920de36d43426f7d44c47da68891a79a81d (diff)
downloadurpmi-0a039580760aba7aba89710f6c370396e64d3f59.tar
urpmi-0a039580760aba7aba89710f6c370396e64d3f59.tar.gz
urpmi-0a039580760aba7aba89710f6c370396e64d3f59.tar.bz2
urpmi-0a039580760aba7aba89710f6c370396e64d3f59.tar.xz
urpmi-0a039580760aba7aba89710f6c370396e64d3f59.zip
Emit an error when using --root and where no /dev/null is found in the
specified chroot
-rw-r--r--urpm.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 90676f5d..890b053b 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -454,6 +454,9 @@ sub configure {
$urpm->{root} = $options{root};
}
+ $urpm->{root} && ! -c "$urpm->{root}/dev/null"
+ and $urpm->{error}(N("there doesn't seem to be devices in the chroot in \"%s\"", $urpm->{root}));
+
if ($options{synthesis}) {
if ($options{synthesis} ne 'none') {
#- synthesis take precedence over media, update options.