diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:51:55 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-08 18:51:55 +0000 |
commit | d8183b0ed3a781f72789225321ee295516f18e34 (patch) | |
tree | a76924582b7f779c0774e110fcd9933579f6aad8 /urpm | |
parent | d31743ebddbb54c0ce0fd870fa5c9935b67999c0 (diff) | |
download | urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.gz urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.bz2 urpmi-d8183b0ed3a781f72789225321ee295516f18e34.tar.xz urpmi-d8183b0ed3a781f72789225321ee295516f18e34.zip |
(run) simplify
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/main_loop.pm | 5 |
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 |