diff options
author | Timo Teras <timo.teras@iki.fi> | 2010-03-15 09:16:14 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2010-03-15 09:16:14 +0200 |
commit | e3f919a4f56d8f6fdc201886cafcab2cdf15f782 (patch) | |
tree | e73481f4edc42fe9da9c205a33e0d6d2bdcbfbd5 /src/state.c | |
parent | b40b2f042977986ae1bbddde148a3a445a3c27fe (diff) | |
download | apk-tools-e3f919a4f56d8f6fdc201886cafcab2cdf15f782.tar.gz apk-tools-e3f919a4f56d8f6fdc201886cafcab2cdf15f782.tar.bz2 apk-tools-e3f919a4f56d8f6fdc201886cafcab2cdf15f782.tar.xz apk-tools-e3f919a4f56d8f6fdc201886cafcab2cdf15f782.zip |
state: virtual packages are always installable
they do not have any package associated. this is indicated by
package with zero installed_size.
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index a6f9f0a..7de9259 100644 --- a/src/state.c +++ b/src/state.c @@ -160,6 +160,8 @@ static void ns_free(apk_name_state_t name) static inline int apk_state_pkg_available(struct apk_state *state, struct apk_package *pkg) { + if (pkg->installed_size == 0) + return TRUE; if (pkg->filename != NULL) return TRUE; if (apk_db_select_repo(state->db, pkg) != NULL) |