summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-10 14:36:19 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-10 14:36:19 +0000
commit04153f0494afa9d48b37e764f0628776577c6a0e (patch)
tree9628a66e8e785fdb79b9a2d86ff8184ca7b6d438 /urpmi
parent60004bfe94c36a5750fe2954441914ad1946bc2d (diff)
downloadurpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar
urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.gz
urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.bz2
urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.tar.xz
urpmi-04153f0494afa9d48b37e764f0628776577c6a0e.zip
moved depslist computation out of loop of hdlist reading.
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index d645771f..b0814ab1 100755
--- a/urpmi
+++ b/urpmi
@@ -84,7 +84,8 @@ for (@ARGV) {
/^--X$/ and do { $X = 1; next };
/^--WID=(.*)$/ and do { $WID = $1; next };
/^--WID$/ and do { push @nextargv, \$WID; next };
- /^--best-output$/ and do { $X ||= $ENV{DISPLAY} && system('/usr/X11R6/bin/xtest', '') == 0; next };
+ /^--best-output$/ and do { $X ||= $ENV{DISPLAY} && -x "/usr/X11R6/bin/grpmi" && system('/usr/X11R6/bin/xtest', '') == 0;
+ next };
/^--comment$/ and do { push @nextargv, undef; next };
/^-(.*)$/ and do { foreach (split //, $1) {
/[\?h]/ and do { usage; next };