From 8d6dfa2d153b2c85ba57faf296db5f86eccf0aa0 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 26 Apr 2004 13:03:28 +0000 Subject: Allow to use ./urpmi if present --- gurpmi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gurpmi') 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"; -- cgit v1.2.1