summaryrefslogtreecommitdiffstats
path: root/urpm/download.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/download.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/download.pm')
-rw-r--r--urpm/download.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 7d2b8d6a..ceb6ffff 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -632,7 +632,13 @@ sub sync {
$all_options{$cpt} = $urpm->{options}{$cpt} if defined $urpm->{options}{$cpt};
}
- eval { _sync_webfetch_raw($urpm, $files, \%all_options); 1 };
+ $urpm->{debug}(N("retrieving %s", join(' ', @$files)));
+
+ eval {
+ _sync_webfetch_raw($urpm, $files, \%all_options);
+ $urpm->{log}(N("retrieved %s", join(' ', @$files)));
+ 1;
+ };
}
#- syncing algorithms.