summaryrefslogtreecommitdiffstats
path: root/urpm/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-28 10:04:00 +0000
commitf076742409681509eee3d28369b21f495ed19d42 (patch)
tree7d180ab33ab9c900cf14db9212c4797fa670229b /urpm/media.pm
parente45ec0d2d69b5f3e438cc2aa7ca3bf715d7df57a (diff)
downloadurpmi-f076742409681509eee3d28369b21f495ed19d42.tar
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.gz
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.bz2
urpmi-f076742409681509eee3d28369b21f495ed19d42.tar.xz
urpmi-f076742409681509eee3d28369b21f495ed19d42.zip
- add {debug} level messages
- add some debug message before downloading - always display the retrieved url (using {log})
Diffstat (limited to 'urpm/media.pm')
-rw-r--r--urpm/media.pm3
1 files changed, 0 insertions, 3 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 27655d04..ad8d9824 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -676,7 +676,6 @@ sub add_distrib_media {
if (urpm::download::sync($urpm, undef,
[ reduce_pathname($distribconf->getfullpath(undef, 'infodir') . '/media.cfg') ],
quiet => 1)) {
- $urpm->{log}(N("...retrieving done"));
$distribconf->parse_mediacfg("$urpm->{cachedir}/partial/media.cfg")
or $urpm->{error}(N("unable to parse media.cfg")), return();
} else {
@@ -1196,7 +1195,6 @@ sub get_hdlist_or_synthesis__remote {
if (urpm::download::sync($urpm, $medium, [ _url_with_hdlist($medium) ],
quiet => $quiet, callback => $callback) &&
file_size(cachedir_with_hdlist($urpm, $medium)) >= 20) {
- $urpm->{log}(N("...retrieving done"));
1;
} else {
chomp(my $err = $@);
@@ -1428,7 +1426,6 @@ sub _update_medium__parse_if_unmodified__remote {
$options->{force} and unlink $f;
if (urpm::download::sync($urpm, $medium, [ reduce_pathname("$medium->{url}/$with_hdlist") ],
quiet => $options->{quiet}, callback => $options->{callback}) && file_size($f) >= 20) {
- $urpm->{log}(N("...retrieving done"));
$medium->{with_hdlist} = $with_hdlist;
$urpm->{log}(N("found probed hdlist (or synthesis) as %s", $medium->{with_hdlist}));
last; #- found a suitable with_hdlist in the list above.