summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-24 14:02:56 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-24 14:02:56 +0300
commitc8c52e1dc6fbf99c013d16723a0b4c4087dc8439 (patch)
tree73e91f80765a014606bf8dec1249563921e6e4a6 /src/database.c
parente5be34335ca8ff9df4ec53c2ab421522a6ca02c3 (diff)
downloadapk-tools-c8c52e1dc6fbf99c013d16723a0b4c4087dc8439.tar.gz
apk-tools-c8c52e1dc6fbf99c013d16723a0b4c4087dc8439.tar.bz2
apk-tools-c8c52e1dc6fbf99c013d16723a0b4c4087dc8439.tar.xz
apk-tools-c8c52e1dc6fbf99c013d16723a0b4c4087dc8439.zip
db: remove APK_NAME_VIRTUAL flag
use the package 'installed_size' == 0 as a test instead for dependency only packages.
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;