summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpme4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpme b/urpme
index f3358400..2c77486b 100644
--- a/urpme
+++ b/urpme
@@ -62,6 +62,10 @@ my $state = {};
#- remove verbose if not asked.
$verbose or $urpm->{log} = sub {};
+if ($< && !$test) {
+ $urpm->{fatal}(1, N("Only superuser is allowed to remove packages"));
+}
+
#- just configure parallel mode if available.
$urpm->configure(
synthesis => ($parallel ? 'none' : ''),