aboutsummaryrefslogtreecommitdiffstats
path: root/src/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transaction.c')
-rw-r--r--src/transaction.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/transaction.c b/src/transaction.c
index ee46251..27ed396 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -272,22 +272,18 @@ int handle_transaction(const rc_config *global_config, transaction_t *tran){
printf("\n");
- /* run transaction, install, upgrade, and remove */
- for(i = 0; i < tran->install_pkgs->pkg_count;i++){
- if( global_config->download_only == FALSE )
+ /* run transaction, remove, install, and upgrade */
+ if( global_config->download_only == FALSE ){
+ for(i = 0; i < tran->install_pkgs->pkg_count;i++){
if( install_pkg(global_config,tran->install_pkgs->pkgs[i]) == -1 ) exit(1);
- }
- for(i = 0; i < tran->upgrade_pkgs->pkg_count;i++){
- if( global_config->download_only == FALSE ){
+ }
+ for(i = 0; i < tran->upgrade_pkgs->pkg_count;i++){
if( upgrade_pkg( global_config,
tran->upgrade_pkgs->pkgs[i]->installed,
tran->upgrade_pkgs->pkgs[i]->upgrade
) == -1 ) exit(1);
}
-
- }
- for(i = 0; i < tran->remove_pkgs->pkg_count;i++){
- 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);
}
}