diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-14 19:31:03 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-01-14 19:31:03 +0000 |
commit | cf919b18788df5ed01b43018941c262a51596dfe (patch) | |
tree | 559d8ffaf22cbda335091317583218f6d5d4b9a9 | |
parent | 45219a97f50e6c6328d14da239c0fea7192e4007 (diff) | |
download | urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.gz urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.bz2 urpmi-cf919b18788df5ed01b43018941c262a51596dfe.tar.xz urpmi-cf919b18788df5ed01b43018941c262a51596dfe.zip |
$root =~ s!/*!! to avoid root detection issue
-rw-r--r-- | urpme | 3 | ||||
-rwxr-xr-x | urpmi | 4 | ||||
-rwxr-xr-x | urpmq | 3 |
3 files changed, 10 insertions, 0 deletions
@@ -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 = {}; @@ -238,6 +238,10 @@ while (defined($_ = shift @argv)) { } $src = 0; #- reset switch for next package. } + +# We assume --root / is stupid (P. Terjan idea) +$root =~ s!^/*$!!; + #- use install_src to promote all names as src package. if ($install_src) { @files and $urpm->{fatal}(1, N("What can be done with binary rpm files when using --install-src")); @@ -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 {}; |