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