summaryrefslogtreecommitdiffstats
path: root/mgaapplet_urpm.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:45:45 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:45:45 +0000
commitc17fad6d9462e8775cbeb97eb4b9d121a600b486 (patch)
tree0baff1248c2d26e9a435a35d21e81c73cfba57db /mgaapplet_urpm.pm
parent23fbc6fbd353c88c1331b1ae84ca8e968bcfc5ec (diff)
downloadmgaonline-c17fad6d9462e8775cbeb97eb4b9d121a600b486.tar
mgaonline-c17fad6d9462e8775cbeb97eb4b9d121a600b486.tar.gz
mgaonline-c17fad6d9462e8775cbeb97eb4b9d121a600b486.tar.bz2
mgaonline-c17fad6d9462e8775cbeb97eb4b9d121a600b486.tar.xz
mgaonline-c17fad6d9462e8775cbeb97eb4b9d121a600b486.zip
(get_content) use more modern urpmi API
Diffstat (limited to 'mgaapplet_urpm.pm')
-rw-r--r--mgaapplet_urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgaapplet_urpm.pm b/mgaapplet_urpm.pm
index 0212e395..2496eb15 100644
--- a/mgaapplet_urpm.pm
+++ b/mgaapplet_urpm.pm
@@ -39,7 +39,7 @@ sub get_content {
my $file = $download_dir . basename($url);
unlink $file; # prevent "partial file" errors
- eval { urpm::download::sync($urpm, undef, [ $url ], quiet => 1, dir => $download_dir) };
+ eval { urpm::download::sync_rel($urpm, $url, quiet => 1, dir => $download_dir) };
#sync_url($urpm, $url, dir => $download_dir, quiet => 1) or return;
my @l = cat_($file);