diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-09 13:25:51 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-03-09 13:25:51 +0000 |
commit | 0a039580760aba7aba89710f6c370396e64d3f59 (patch) | |
tree | 4471c6045bc275efbaeeae0840cf51dfaa193a3a /urpm.pm | |
parent | 6de94920de36d43426f7d44c47da68891a79a81d (diff) | |
download | urpmi-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
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |