aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-20 16:26:37 +0000
committerJason Woodward2005-01-20 16:26:37 +0000
commitfaf20ed38129fb320fd1113684434805b6fd5a18 (patch)
treea9ef7661dea62d638719f981972a99926ea4413d /src
parentcd9b773b9c23fd19a3c43d621d568cc575349d12 (diff)
downloadslapt-get-faf20ed38129fb320fd1113684434805b6fd5a18.tar.gz
moved exclude check for installed version of package about to be updated so that packages that where not being upgraded wouldn't show up excluded
Diffstat (limited to 'src')
-rw-r--r--src/action.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/action.c b/src/action.c
index d18987e..ad47689 100644
--- a/src/action.c
+++ b/src/action.c
@@ -535,7 +535,9 @@ void pkg_action_upgrade_all(const rc_config *global_config){
)
){
- if( is_excluded(global_config,update_pkg) == 1 ){
+ if( (is_excluded(global_config,update_pkg) == 1)
+ || (is_excluded(global_config,installed_pkgs->pkgs[i]) == 1)
+ ){
add_exclude_to_transaction(&tran,update_pkg);
}else{
/* if all deps are added and there is no conflicts, add on */