diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 12:44:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-03 12:44:46 +0000 |
commit | df7a78fa5d2b71afe1d7665671f11979d035b466 (patch) | |
tree | a3e92d9a7d5a72b59fda4938259a8a5b108a503b /urpm/download.pm | |
parent | 617768a914054de8b75f9610087de2cb07b9eb63 (diff) | |
download | urpmi-df7a78fa5d2b71afe1d7665671f11979d035b466.tar urpmi-df7a78fa5d2b71afe1d7665671f11979d035b466.tar.gz urpmi-df7a78fa5d2b71afe1d7665671f11979d035b466.tar.bz2 urpmi-df7a78fa5d2b71afe1d7665671f11979d035b466.tar.xz urpmi-df7a78fa5d2b71afe1d7665671f11979d035b466.zip |
create urpm::download::sync_rel() and use it
Diffstat (limited to 'urpm/download.pm')
-rw-r--r-- | urpm/download.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm index 244cc45e..244d6d72 100644 --- a/urpm/download.pm +++ b/urpm/download.pm @@ -762,6 +762,13 @@ sub url_obscuring_password { } } +sub sync_rel { + my ($urpm, $medium, $rel_files, %options) = @_; + + my @files = map { reduce_pathname("$medium->{url}/$_") } @$rel_files; + sync($urpm, $medium, \@files, %options); +} + #- $medium can be undef #- known options: quiet, resume, callback sub sync { |