summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index 32ee3bd..8d96634 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1308,7 +1308,7 @@ int apk_db_install_pkg(struct apk_database *db,
/* Install the new stuff */
if (!(newpkg->name->flags & APK_NAME_VIRTUAL)) {
- r = apk_db_unpack_pkg(db, newpkg, (oldpkg == NULL), csum,
+ r = apk_db_unpack_pkg(db, newpkg, (oldpkg != NULL), csum,
cb, cb_ctx);
if (r != 0)
return r;