From 0a039580760aba7aba89710f6c370396e64d3f59 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 9 Mar 2005 13:25:51 +0000 Subject: Emit an error when using --root and where no /dev/null is found in the specified chroot --- urpm.pm | 3 +++ 1 file changed, 3 insertions(+) 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. -- cgit v1.2.1