From 9ad8fadff607b7b15c73eeec3dd8949c54f04656 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 14 Mar 2006 12:18:24 +0000 Subject: add some logs --- mdkupdate | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index 1b182dc7..bb885aac 100755 --- a/mdkupdate +++ b/mdkupdate @@ -155,6 +155,7 @@ if (!$bundle) { my $res = mdkonline::prepare_upload_conf($wc); if ($bundle_vars{CLIENT_VERSION} > $CLIENT_VERSION) { + log::l("the client is too old in order to install the bundle $bundle_vars{BUNDLE}") $in->ask_warn(N("Warning"), N("The version of the Mandriva Online client is too old. You need to update to a newer version. You can get a new one from http://start.mandriva.com")); @@ -225,8 +226,10 @@ sub install_pkgs { my $w = $in->wait_message(N("Please wait"), N("Installing packages ...\n")); eval { if (!$o_options->{is_bundle}) { + log::l("applying the updates") system "/usr/sbin/gurpmi", "--auto", "--media", $media_name, @$choosed; } else { + log::l("installing the bundle") system "/usr/bin/urpmi", '--auto', if_($o_options->{auto_select}, "--auto-select"), if_($o_options->{medias}, "--media", join(',', @{$o_options->{medias}})), "--searchmedia", $media_name, @$choosed; @@ -274,6 +277,7 @@ sub auto_install_rpms { sub add_media { my ($media_name, $mirror, $hdlist, $option) = @_; + log::l("removing/adding the media $media_name") eval { system "/usr/sbin/urpmi.removemedia", $media_name; # use curl because wget sometime fail on https url -- cgit v1.2.1