summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/main_loop.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 1a2b8122..65b9d358 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -393,9 +393,8 @@ sub run {
or last;
}
}
- if ($callbacks->{is_canceled}) {
- last if $callbacks->{is_canceled}->();
- }
+
+ last if $callbacks->{is_canceled} && $callbacks->{is_canceled}->();
}
#- migrate the chrooted rpmdb if needed