Commit e3f919a4 authored by Timo Teräs's avatar Timo Teräs
Browse files

state: virtual packages are always installable

they do not have any package associated. this is indicated by
package with zero installed_size.
parent b40b2f04
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment