summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-14 12:18:24 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-14 12:18:24 +0000
commit9ad8fadff607b7b15c73eeec3dd8949c54f04656 (patch)
treedb5d99b80f50969d6ef63cc87a31a3801be9e00a /mdkupdate
parentef054ecd7bca8637dde3e2647faca184715b1fb2 (diff)
downloadmgaonline-9ad8fadff607b7b15c73eeec3dd8949c54f04656.tar
mgaonline-9ad8fadff607b7b15c73eeec3dd8949c54f04656.tar.gz
mgaonline-9ad8fadff607b7b15c73eeec3dd8949c54f04656.tar.bz2
mgaonline-9ad8fadff607b7b15c73eeec3dd8949c54f04656.tar.xz
mgaonline-9ad8fadff607b7b15c73eeec3dd8949c54f04656.zip
add some logs
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate4
1 files changed, 4 insertions, 0 deletions
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