summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 08e43236..d4b83706 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -21,12 +21,14 @@ urpm::install - Package installation transaction routines for urpmi
# size of the installation progress bar
my $progress_size = 45;
-eval {
+if (-t STDOUT) {
+ eval {
require Term::ReadKey;
($progress_size) = Term::ReadKey::GetTerminalSize();
$progress_size -= 35;
$progress_size < 5 and $progress_size = 5;
-};
+ };
+}
sub _hash_intersect_list {