From f076742409681509eee3d28369b21f495ed19d42 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 28 Nov 2006 10:04:00 +0000 Subject: - add {debug} level messages - add some debug message before downloading - always display the retrieved url (using {log}) --- urpm/download.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'urpm/download.pm') 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. -- cgit v1.2.1