summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
Diffstat (limited to 'urpme')
-rw-r--r--urpme3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpme b/urpme
index 1d6efb9c..59f1a610 100644
--- a/urpme
+++ b/urpme
@@ -68,6 +68,9 @@ while (defined($_ = shift @ARGV)) {
push @l, $_;
}
+# We assume --root / is stupid (P. Terjan idea)
+$root =~ s!^/*$!!;
+
my $urpm = new urpm;
my $state = {};