From c8c52e1dc6fbf99c013d16723a0b4c4087dc8439 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 24 Jul 2009 14:02:56 +0300 Subject: db: remove APK_NAME_VIRTUAL flag use the package 'installed_size' == 0 as a test instead for dependency only packages. --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database.c') 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; -- cgit v1.2.3-70-g09d2