summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-13 13:08:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-13 13:08:23 +0000
commit0d769b1d2ec99e74d044b6acb409a116746eca4c (patch)
tree97240c4635e4f813443ba2475bca467a4894a6a7 /urpme
parentd43080a88e26c841b3a1215aacb4666c11e797a3 (diff)
downloadurpmi-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--urpme7
1 files changed, 6 insertions, 1 deletions
diff --git a/urpme b/urpme
index 65e0f03c..1a80f9ab 100644
--- a/urpme
+++ b/urpme
@@ -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");
}