aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-17 04:24:12 +0000
committerJason Woodward2005-01-17 04:24:12 +0000
commitd6aecb1896add9873ff319b880d4b2968e4f19c5 (patch)
treeef05ad2188d36dd65e905fd7037e6be1c833fa4c /src
parenta93dea21cdda35f12f8f74086a4cc33df3a38bf9 (diff)
downloadslapt-get-d6aecb1896add9873ff319b880d4b2968e4f19c5.tar.gz
show packages excluded in transaction report when --remove-obsolete hits excluded packages
Diffstat (limited to 'src')
-rw-r--r--src/action.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/action.c b/src/action.c
index b7b4cb5..318e6b3 100644
--- a/src/action.c
+++ b/src/action.c
@@ -481,13 +481,19 @@ void pkg_action_upgrade_all(const rc_config *global_config){
deps = is_required_by(global_config,avail_pkgs,installed_pkgs->pkgs[r]);
for(c = 0; c < deps->pkg_count; c++ ){
if( get_newest_pkg(avail_pkgs,deps->pkgs[c]->name) == NULL ){
- if( is_excluded(global_config,deps->pkgs[c]) != 1 )
+ if( is_excluded(global_config,deps->pkgs[c]) != 1 ){
add_remove_to_transaction(&tran,deps->pkgs[c]);
+ }else{
+ add_exclude_to_transaction(&tran,deps->pkgs[c]);
+ }
}
}
free_pkg_list(deps);
- if( is_excluded(global_config,installed_pkgs->pkgs[r]) != 1 )
+ if( is_excluded(global_config,installed_pkgs->pkgs[r]) != 1 ){
add_remove_to_transaction(&tran,installed_pkgs->pkgs[r]);
+ }else{
+ add_exclude_to_transaction(&tran,installed_pkgs->pkgs[r]);
+ }
}
}