From 757705cc72962f5aa2928ded1c536fcefe436fbc Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 31 Mar 2009 15:21:01 +0000 Subject: (run) enable installer to cancel installation --- NEWS | 1 + urpm/main_loop.pm | 3 +++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 7a9779cb..e96d9a75 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - downgrade cryptic log message to debug message, fixes #49226 +- enable installer to cancel installation Version 6.24 - 27 March 2009 diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 74e860dd..db4066ab 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -273,6 +273,9 @@ foreach my $set (@{$state->{transaction} || []}) { } } } + if ($callbacks->{is_canceled}) { + last if $callbacks->{is_canceled}->(); + } } if ($migrate_back_rpmdb_db_version) { -- cgit v1.2.1