diff options
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 { |