summaryrefslogtreecommitdiffstats
path: root/mdkapplet_urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet_urpm.pm')
-rw-r--r--mdkapplet_urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdkapplet_urpm.pm b/mdkapplet_urpm.pm
index 980854af..203a968e 100644
--- a/mdkapplet_urpm.pm
+++ b/mdkapplet_urpm.pm
@@ -43,7 +43,7 @@ sub get_content {
my $file = $download_dir . basename($url);
unlink $file; # prevent "partial file" errors
- urpm::download::sync($urpm, undef, [ $url ], quiet => 1, dir => $download_dir) or return;
+ eval { urpm::download::sync($urpm, undef, [ $url ], quiet => 1, dir => $download_dir) };
#sync_url($urpm, $url, dir => $download_dir, quiet => 1) or return;
my @l = cat_($file);