summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--mgaapplet_urpm.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6e130089..0c135ebc 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- use more modern urpmi API
+
Version 2.77.33 - 21 April 2012, Thierry Vignaud
- invalidate urpmi cache on upgrade (mga#1588)
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);