summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-09-19 17:10:05 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-09-19 17:10:05 +0000
commit9c160f42c9c45604042d526324a6cbd4cff3d856 (patch)
treeae4f220782f2c118d05fe0230646979dd5a1a77c
parentcfb791650ef3f71af70e5e06220cc24fcac2da33 (diff)
downloadurpmi-9c160f42c9c45604042d526324a6cbd4cff3d856.tar
urpmi-9c160f42c9c45604042d526324a6cbd4cff3d856.tar.gz
urpmi-9c160f42c9c45604042d526324a6cbd4cff3d856.tar.bz2
urpmi-9c160f42c9c45604042d526324a6cbd4cff3d856.tar.xz
urpmi-9c160f42c9c45604042d526324a6cbd4cff3d856.zip
added option `--best-output' which enables --X only if X is available
-rwxr-xr-xurpmi1
1 files changed, 1 insertions, 0 deletions
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 };