state: installed package does not need downloading

so do not skip it even if it's no longer available.
cute-signatures
Timo Teras 2009-08-06 17:19:01 +03:00
parent 8ae244db7d
commit a120a96db4
1 changed files with 2 additions and 3 deletions

View File

@ -298,9 +298,8 @@ int apk_state_lock_dependency(struct apk_state *state,
if (apk_pkg_get_state(c->pkgs[i]) == APK_PKG_INSTALLED) if (apk_pkg_get_state(c->pkgs[i]) == APK_PKG_INSTALLED)
installed = pkg; installed = pkg;
else if (pkg->filename == NULL &&
if (pkg->filename == NULL && apk_db_select_repo(state->db, pkg) == NULL)
apk_db_select_repo(state->db, pkg) == NULL)
continue; continue;
if (latest == NULL) { if (latest == NULL) {