From c17fad6d9462e8775cbeb97eb4b9d121a600b486 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Aug 2012 16:45:45 +0000 Subject: (get_content) use more modern urpmi API --- mgaapplet_urpm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mgaapplet_urpm.pm') 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); -- cgit v1.2.1