summaryrefslogtreecommitdiffstats
path: root/gurpmi
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-26 13:03:28 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-04-26 13:03:28 +0000
commit8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0 (patch)
tree4330907db1639c2d95e77c66d4bf4c2c50b845a7 /gurpmi
parent374b30794098e351a69e22ef7877a525aae07b57 (diff)
downloadurpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar
urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.gz
urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.bz2
urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.tar.xz
urpmi-8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0.zip
Allow to use ./urpmi if present
Diffstat (limited to 'gurpmi')
-rw-r--r--gurpmi6
1 files changed, 4 insertions, 2 deletions
diff --git a/gurpmi b/gurpmi
index f36525f0..d521a153 100644
--- a/gurpmi
+++ b/gurpmi
@@ -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";