diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-11-12 16:46:50 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-11-12 16:46:50 +0000 |
commit | 7fb7c02945c7fd30c00f0716c4203ca5fbff33bd (patch) | |
tree | dc65225b18692343fab06e9a267b6379b1fd2845 /lib | |
parent | e9809605625b03337290066bddc5c12c96b20129 (diff) | |
download | drak3d-7fb7c02945c7fd30c00f0716c4203ca5fbff33bd.tar drak3d-7fb7c02945c7fd30c00f0716c4203ca5fbff33bd.tar.gz drak3d-7fb7c02945c7fd30c00f0716c4203ca5fbff33bd.tar.bz2 drak3d-7fb7c02945c7fd30c00f0716c4203ca5fbff33bd.tar.xz drak3d-7fb7c02945c7fd30c00f0716c4203ca5fbff33bd.zip |
do not die in automatic mode if there is no control terminal
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Xconfig/glx.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Xconfig/glx.pm b/lib/Xconfig/glx.pm index 39d2606..f0e65c8 100644 --- a/lib/Xconfig/glx.pm +++ b/lib/Xconfig/glx.pm @@ -197,8 +197,8 @@ sub detect() { } sub detect_may_install { - my ($in) = @_; - $in->do_pkgs->ensure_is_installed('mesa-demos', '/usr/bin/glxinfo') or return; + my ($do_pkgs) = @_; + $do_pkgs->ensure_is_installed('mesa-demos', '/usr/bin/glxinfo') or return; Xconfig::glx::detect(); } @@ -234,7 +234,7 @@ sub choose_interactive { } sub install { - my ($in, $glx) = @_; + my ($do_pkgs, $glx) = @_; my $server = find { $_->{method} eq $glx->{method} } @gl_compositing_servers; my $wm = find { $_->{wm} eq $glx->{wm} } @gl_compositing_wms; my @sessions = any::sessions(); @@ -243,7 +243,7 @@ sub install { @{$entry->{packages}}, map { @{$entry->{desktop_packages}{$_} || []} } @sessions; } grep { $_ } $server, $wm; - $in->do_pkgs->ensure_are_installed(\@packages); + $do_pkgs->ensure_are_installed(\@packages); } #- FIXME: move in common.pm and factorize with network::network::proxy_configure_gnome |