summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-08 18:51:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-08 18:51:55 +0000
commitd8183b0ed3a781f72789225321ee295516f18e34 (patch)
treea76924582b7f779c0774e110fcd9933579f6aad8 /urpm/main_loop.pm
parentd31743ebddbb54c0ce0fd870fa5c9935b67999c0 (diff)
downloadurpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar
urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.gz
urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.bz2
urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.xz
urpmi-d8183b0ed3a781f72789225321ee295516f18e34.zip
(run) simplify
Diffstat (limited to 'urpm/main_loop.pm')
-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