From f25b4002b3b01eb0d65e4d3c879481e84ac9332c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 26 Feb 2013 18:23:10 +0000 Subject: do not attempt to use gurpmi.addmedia or gurpmi if in text mode --- perl-install/install/NEWS | 2 ++ perl-install/install/steps_interactive.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 98b442e47..60ed8a992 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,5 @@ +- do not attempt to use gurpmi.addmedia or gurpmi if in text mode + Version 15.22 - 26 February 2013 - Mageia 3 beta 3 left background diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm index 1c549ca4c..1bfea5cd0 100644 --- a/perl-install/install/steps_interactive.pm +++ b/perl-install/install/steps_interactive.pm @@ -781,7 +781,7 @@ Do you want to install the updates?")), install::pkgs::clean_rpmdb_shared_regions(); if (any::urpmi_add_all_media($o, $o->{previous_release})) { - my $binary = find { whereis_binary($_, $::prefix) } 'gurpmi2', 'urpmi' or return; + my $binary = find { whereis_binary($_, $::prefix) } if_(check_for_xserver(), 'gurpmi2'), 'urpmi' or return; my $log_file = '/root/drakx/updates.log'; run_program::rooted($::prefix, $binary, '>>', $log_file, '2>>', $log_file, '--auto-select'); } -- cgit v1.2.1