aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/transaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transaction.c b/src/transaction.c
index 27ed396..c7c4c4f 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -274,6 +274,9 @@ int handle_transaction(const rc_config *global_config, transaction_t *tran){
/* run transaction, remove, install, and upgrade */
if( global_config->download_only == FALSE ){
+ for(i = 0; i < tran->remove_pkgs->pkg_count;i++){
+ if( remove_pkg(global_config,tran->remove_pkgs->pkgs[i]) == -1 ) exit(1);
+ }
for(i = 0; i < tran->install_pkgs->pkg_count;i++){
if( install_pkg(global_config,tran->install_pkgs->pkgs[i]) == -1 ) exit(1);
}
@@ -283,9 +286,6 @@ int handle_transaction(const rc_config *global_config, transaction_t *tran){
tran->upgrade_pkgs->pkgs[i]->upgrade
) == -1 ) exit(1);
}
- for(i = 0; i < tran->remove_pkgs->pkg_count;i++){
- if( remove_pkg(global_config,tran->remove_pkgs->pkgs[i]) == -1 ) exit(1);
- }
}
printf(_("Done\n"));