summaryrefslogtreecommitdiffstats
path: root/gurpmi
blob: b62054116b7442d4bd5062b5056742ede1ca4102 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl -T

$ENV{XAUTHORITY} or $ENV{XAUTHORITY} = "$ENV{HOME}/.Xauthority";
$ENV{PATH} = '/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin';

$urpmi = 'urpmi';
if (-f $urpmi && $ENV{DEBUG_URPMI}) { $urpmi = './urpmi' }

exec $urpmi, "-X", @ARGV
    or die "Can't exec $urpmi: $!\n";