aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2008-12-07 23:51:58 +0000
committerJason Woodward2008-12-07 23:51:58 +0000
commit22fb79096117fe9ad7926f69be58a2cd50e72672 (patch)
tree487e47f6da118760a75b12bf72e01d3af250d60a /src
parenta3609cfdbda9f24886964d25291a24652b7aff2d (diff)
downloadslapt-get-22fb79096117fe9ad7926f69be58a2cd50e72672.tar.gz
logic error when checking if dep is installed when finding obsolete packages
Diffstat (limited to 'src')
-rw-r--r--src/package.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 8d501eb..99fde42 100644
--- a/src/package.c
+++ b/src/package.c
@@ -3382,7 +3382,7 @@ struct slapt_pkg_list *
slapt_pkg_info_t *dep = deps->pkgs[c];
/* if it is installed, we add it to the list */
- if ( slapt_get_exact_pkg(installed_pkgs,dep->name, dep->version) == NULL ) {
+ if ( slapt_get_exact_pkg(installed_pkgs,dep->name, dep->version) != NULL ) {
slapt_add_pkg_to_pkg_list(obsolete,dep);
}
}