From 0d769b1d2ec99e74d044b6acb409a116746eca4c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 13 Jun 2006 13:08:23 +0000 Subject: Add the rurpme(8) command --- urpme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'urpme') 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"); } -- cgit v1.2.1