diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-26 13:03:28 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-04-26 13:03:28 +0000 |
commit | 8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0 (patch) | |
tree | 4330907db1639c2d95e77c66d4bf4c2c50b845a7 | |
parent | 374b30794098e351a69e22ef7877a525aae07b57 (diff) | |
download | urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.gz urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.bz2 urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.xz urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.zip |
Allow to use ./urpmi if present
-rw-r--r-- | gurpmi | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2,6 +2,8 @@ $ENV{XAUTHORITY} or $ENV{XAUTHORITY} = "$ENV{HOME}/.Xauthority"; +$urpmi = 'urpmi'; +if (-f $urpmi) { $urpmi = './urpmi' } -exec "urpmi", "--X", @ARGV; - +exec $urpmi, "--X", @ARGV + or die "Can't exec urpmi: $!\n"; |