summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-01-23 11:13:44 +0000
committerFrancois Pons <fpons@mandriva.com>2003-01-23 11:13:44 +0000
commit17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5 (patch)
treed7afcfd62bfd1344f9c9bf256f7a1e1bdd07ea8b /urpmi.addmedia
parentfece8f144f24a45fbbdb92ac2bcbe017379c09d3 (diff)
downloadurpmi-17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5.tar
urpmi-17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5.tar.gz
urpmi-17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5.tar.bz2
urpmi-17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5.tar.xz
urpmi-17acff9a4f8873d3c754af9e1c8cc4fa5bff2dd5.zip
4.2-9mdk
Diffstat (limited to 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia10
1 files changed, 5 insertions, 5 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 29d1aba8..395c894d 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -144,7 +144,7 @@ and [options] are from
unlink "$urpm->{cachedir}/partial/$basename";
eval {
$urpm->{log}(_("retrieving mirrors at %s ...", $options{from}));
- $urpm->{sync}({dir => "$urpm->{cachedir}/partial", quiet => 0, proxy => $urpm->{proxy}}, $options{from});
+ $urpm->{sync}({dir => "$urpm->{cachedir}/partial", quiet => 1, proxy => $urpm->{proxy}}, $options{from});
$urpm->{log}(_("...retrieving done"));
};
$@ and $urpm->{log}(_("...retrieving failed: %s", $@));
@@ -182,7 +182,7 @@ and [options] are from
$urpm->add_distrib_media($name, $url, update => $options{update});
}
- $urpm->update_media(%options);
+ $urpm->update_media(%options, callback => \&urpm::sync_logger);
if (my @unsynced_media = grep { $_->{modified} } @{$urpm->{media}}) {
print STDERR join("\n", map { _("unable to update medium \"%s\"\n", $_->{name}) } @unsynced_media);
@@ -190,7 +190,7 @@ and [options] are from
#- remove quietly the failing media.
$urpm->{log} = sub {};
$urpm->remove_selected_media;
- $urpm->update_media(%options);
+ $urpm->update_media(%options, callback => \&urpm::sync_logger);
}
} else {
$name or die $usage;
@@ -202,7 +202,7 @@ and [options] are from
}
$urpm->add_medium($name, $url, $relative_hdlist, update => $options{update});
- $urpm->update_media(%options);
+ $urpm->update_media(%options, callback => \&urpm::sync_logger);
#- check creation of media (during update has been successfull)
my ($medium) = grep { $_->{name} eq $name } @{$urpm->{media}};
@@ -212,7 +212,7 @@ and [options] are from
#- remove quietly the failing media.
$urpm->{log} = sub {};
$urpm->remove_selected_media;
- $urpm->update_media(%options);
+ $urpm->update_media(%options, callback => \&urpm::sync_logger);
}
}
}