improve transaction cancellation

This commit is contained in:
guinux
2016-11-02 14:23:52 +01:00
parent 1315bb265e
commit 70fe12c83c
3 changed files with 23 additions and 3 deletions

View File

@@ -997,6 +997,7 @@ namespace Pamac {
action = dgettext (null, "Checking dependencies") + "...";
break;
case 3: //Alpm.Event.Type.FILECONFLICTS_START
start_transaction ();
action = dgettext (null, "Checking file conflicts") + "...";
break;
case 5: //Alpm.Event.Type.RESOLVEDEPS_START
@@ -1105,6 +1106,7 @@ namespace Pamac {
case 41: //Alpm.Event.Type.HOOK_START
switch (secondary_event) {
case 1: //Alpm.HookWhen.PRE_TRANSACTION
start_transaction ();
action = dgettext (null, "Running pre-transaction hooks") + "...";
break;
case 2: //Alpm.HookWhen.POST_TRANSACTION