summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-24 13:08:14 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-03-24 13:08:14 +0000
commit227b9fbe7ba0ab41a09c4260701ff23779d794d4 (patch)
treed9913975129900cfe0845debf20d4cf76d340a7e
parentb90c4abf99b372b73e8f2f5883f1ca48bf98240b (diff)
downloadurpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar
urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.gz
urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.bz2
urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.tar.xz
urpmi-227b9fbe7ba0ab41a09c4260701ff23779d794d4.zip
Invoke gui dialog only under X
-rwxr-xr-xurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi b/urpmi
index 6ccf9ebe..b9741cda 100755
--- a/urpmi
+++ b/urpmi
@@ -486,7 +486,7 @@ $urpm->copy_packages_of_removable_media(
ask_for_medium => (!$urpm->{options}{auto} || $allow_medium_change) && sub {
my $msg = N("Please insert the medium named \"%s\" on device [%s]", $_[0], $_[1]);
my $msg2 = N("Press Enter when ready...");
- if (our $gui) {
+ if ($ENV{DISPLAY} && our $gui) {
#- probably run from a drak tool
my $gmessage = find { -x $_ } '/usr/X11R6/bin/gmessage', '/usr/bin/gmessage';
if ($gmessage) {