summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-29 18:43:36 +0000
committerJason Woodward2005-01-29 18:43:36 +0000
commit533cf3f18310bf4c606463c143bc771fcb6323cb (patch)
tree475d8e8e4bb292d8405f0be6ff84b904673412ce /src
parent865158063d54ce58da2e4591b54db94e5d1ca379 (diff)
downloadslapt-get-533cf3f18310bf4c606463c143bc771fcb6323cb.tar.gz
ensure that package removal doesn't happen when --download-only is specified
Diffstat (limited to 'src')
-rw-r--r--src/transaction.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transaction.c b/src/transaction.c
index f5a4c48..ee46251 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -287,7 +287,9 @@ int handle_transaction(const rc_config *global_config, transaction_t *tran){
}
for(i = 0; i < tran->remove_pkgs->pkg_count;i++){
- if( remove_pkg(global_config,tran->remove_pkgs->pkgs[i]) == -1 ) exit(1);
+ if( global_config->download_only == FALSE ){
+ if( remove_pkg(global_config,tran->remove_pkgs->pkgs[i]) == -1 ) exit(1);
+ }
}
printf(_("Done\n"));