aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-06-13 15:34:39 +0000
committerThierry Vignaud <tv@mandriva.org>2007-06-13 15:34:39 +0000
commit33fe986296a0be3969c108a5c1343fbb81db971d (patch)
treeacac787f2e758cf640bb319db2d822739d0c17cd /Rpmdrake
parentac76267ab7cfad8d04821b26c2dff288f85e7103 (diff)
downloadrpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar
rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.gz
rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.bz2
rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.tar.xz
rpmdrake-33fe986296a0be3969c108a5c1343fbb81db971d.zip
prevent urpmi.update to run /usr/bin/resize through
Term::ReadKey->GetTerminalSize() when xterm is installed (which freezes the GNOME desktop) (#30867)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/init.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rpmdrake/init.pm b/Rpmdrake/init.pm
index 98c3db64..90d411af 100755
--- a/Rpmdrake/init.pm
+++ b/Rpmdrake/init.pm
@@ -33,6 +33,12 @@ use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(init warn_about_user_mode $changelog_first $default_list_mode %options $MODE);
+# prevent urpmi.update to run /usr/bin/resize through Term::ReadKey->GetTerminalSize() when xterm is installed
+# (which freezes the GNOME desktop):
+BEGIN {
+ $ENV{COLUMNS} = 80;
+ $ENV{LINES} = 25;
+}
BEGIN { #- we want to run this code before the Gtk->init of the use-my_gtk
my $basename = sub { local $_ = shift; s|/*\s*$||; s|.*/||; $_ };