diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-13 13:08:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-13 13:08:23 +0000 |
commit | 0d769b1d2ec99e74d044b6acb409a116746eca4c (patch) | |
tree | 97240c4635e4f813443ba2475bca467a4894a6a7 /urpme | |
parent | d43080a88e26c841b3a1215aacb4666c11e797a3 (diff) | |
download | urpmi-0d769b1d2ec99e74d044b6acb409a116746eca4c.tar urpmi-0d769b1d2ec99e74d044b6acb409a116746eca4c.tar.gz urpmi-0d769b1d2ec99e74d044b6acb409a116746eca4c.tar.bz2 urpmi-0d769b1d2ec99e74d044b6acb409a116746eca4c.tar.xz urpmi-0d769b1d2ec99e74d044b6acb409a116746eca4c.zip |
Add the rurpme(8) command
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -27,7 +27,7 @@ use urpm::msg; $ENV{PATH} = "/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"; delete @ENV{qw(ENV BASH_ENV IFS CDPATH)}; -our ($root, $test, $parallel, $auto, $matches, $verbose, $usedistrib, $force, $noscripts, $repackage, @l, $bundle); +our ($root, $test, $parallel, $auto, $matches, $verbose, $usedistrib, $force, $noscripts, $repackage, @l, $bundle, $restricted); # Translator: Add here the keys which might be pressed in the "No"-case. my $noexpr = N("Nn"); # Translator: Add here the keys which might be pressed in the "Yes"-case. @@ -70,6 +70,11 @@ if ($< && !$test) { $urpm->{fatal}(1, N("Only superuser is allowed to remove packages")); } +#- rurpme checks +if ($restricted) { + urpm::error_restricted($urpm) if $root || $usedistrib || $noscripts || $parallel; +} + unless ($test) { sys_log("called with: @origARGV"); } |