summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-01-14 19:31:03 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-01-14 19:31:03 +0000
commitcf919b18788df5ed01b43018941c262a51596dfe (patch)
tree559d8ffaf22cbda335091317583218f6d5d4b9a9 /urpmq
parent45219a97f50e6c6328d14da239c0fea7192e4007 (diff)
downloadurpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar
urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.gz
urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.bz2
urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.xz
urpmi-cf919b18788df5ed01b43018941c262a51596dfe.zip
$root =~ s!/*!! to avoid root detection issue
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 {};