summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-09-19 17:17:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-09-19 17:17:14 +0000
commit6a0e7a3824d746cb170a0f585aef6c2229c68a22 (patch)
treece404a9fb267a0aed6c2b27c0bb12a0e5dcc80db
parent9c160f42c9c45604042d526324a6cbd4cff3d856 (diff)
downloadurpmi-6a0e7a3824d746cb170a0f585aef6c2229c68a22.tar
urpmi-6a0e7a3824d746cb170a0f585aef6c2229c68a22.tar.gz
urpmi-6a0e7a3824d746cb170a0f585aef6c2229c68a22.tar.bz2
urpmi-6a0e7a3824d746cb170a0f585aef6c2229c68a22.tar.xz
urpmi-6a0e7a3824d746cb170a0f585aef6c2229c68a22.zip
*** empty log message ***
-rwxr-xr-xurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index d373f81a..59de00c3 100755
--- a/urpmi
+++ b/urpmi
@@ -54,7 +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 };
+ /^--best-output$/ and do { $X ||= $ENV{DISPLAY} && system('/usr/X11R6/bin/xtest', '') == 0; next };
/^--comment$/ and do { push @nextargv, undef; next };
/^-(.*)$/ and do { foreach (split //, $1) {
/[\?h]/ and do { usage; next };