From 9c160f42c9c45604042d526324a6cbd4cff3d856 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 19 Sep 2000 17:10:05 +0000 Subject: added option `--best-output' which enables --X only if X is available --- urpmi | 1 + 1 file changed, 1 insertion(+) diff --git a/urpmi b/urpmi index f1d64aaa..d373f81a 100755 --- a/urpmi +++ b/urpmi @@ -54,6 +54,7 @@ for (@ARGV) { /^--auto$/ and do { $auto = 1; next }; /^--force$/ and do { $force = 1; next }; /^--X$/ and do { $X = 1; next }; + /^--best-output$/ and do { (($ENV{DISPLAY}) && (!system "/usr/X11R6/bin/xtest", "")) and $X = 1; next }; /^--comment$/ and do { push @nextargv, undef; next }; /^-(.*)$/ and do { foreach (split //, $1) { /[\?h]/ and do { usage; next }; -- cgit v1.2.1