aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-07-06 23:12:08 +0200
committerAngelo Naselli <anaselli@linux.it>2014-07-06 23:12:08 +0200
commit653a04958b18eb88bebc4660f6b1bacd5cae366b (patch)
treeadb4876cd517780b34e38feb05d64fa64f9ce8d6 /lib/AdminPanel
parentb59e3283d54e01e1c0f4eb34d5115e9ebae1e072 (diff)
downloadcolin-keep-653a04958b18eb88bebc4660f6b1bacd5cae366b.tar
colin-keep-653a04958b18eb88bebc4660f6b1bacd5cae366b.tar.gz
colin-keep-653a04958b18eb88bebc4660f6b1bacd5cae366b.tar.bz2
colin-keep-653a04958b18eb88bebc4660f6b1bacd5cae366b.tar.xz
colin-keep-653a04958b18eb88bebc4660f6b1bacd5cae366b.zip
better a quit exit in case of fault
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r--lib/AdminPanel/rpmdragora.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AdminPanel/rpmdragora.pm b/lib/AdminPanel/rpmdragora.pm
index 6d0ba4c..956cf8d 100644
--- a/lib/AdminPanel/rpmdragora.pm
+++ b/lib/AdminPanel/rpmdragora.pm
@@ -657,7 +657,7 @@ sub update_sources {
callback => sub {
$cancel and goto cancel_update;
my ($type, $media) = @_;
- return if $type !~ /^(?:start|progress|end)$/ && @media && !member($media, @media);
+ goto cancel_update if $type !~ /^(?:start|progress|end)$/ && @media && !member($media, @media);
if ($type eq 'failed') {
$urpm->{fatal}->(N("Error retrieving packages"),
N("It's impossible to retrieve the list of new packages from the media