diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2000-09-19 17:10:05 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2000-09-19 17:10:05 +0000 |
commit | 9c160f42c9c45604042d526324a6cbd4cff3d856 (patch) | |
tree | ae4f220782f2c118d05fe0230646979dd5a1a77c | |
parent | cfb791650ef3f71af70e5e06220cc24fcac2da33 (diff) | |
download | urpmi-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-x | urpmi | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 }; |