summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq3
1 files changed, 3 insertions, 0 deletions
diff --git a/urpmq b/urpmq
index 394c66a9..4abf1323 100755
--- a/urpmq
+++ b/urpmq
@@ -166,6 +166,9 @@ while (defined($_ = shift @ARGV)) {
$query->{src} = 0; #- reset switch for next package.
}
+# We assume --root / is stupid (P. Terjan idea)
+$root =~ s!^/*$!!;
+
#- remove verbose if not asked.
$query->{verbose} or $urpm->{log} = sub {};