From a120a96db4c821f51dff953a3fc0475b4870a5c3 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 6 Aug 2009 17:19:01 +0300 Subject: state: installed package does not need downloading so do not skip it even if it's no longer available. --- src/state.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index dcb2c7c..6d6c569 100644 --- a/src/state.c +++ b/src/state.c @@ -298,9 +298,8 @@ int apk_state_lock_dependency(struct apk_state *state, if (apk_pkg_get_state(c->pkgs[i]) == APK_PKG_INSTALLED) installed = pkg; - - if (pkg->filename == NULL && - apk_db_select_repo(state->db, pkg) == NULL) + else if (pkg->filename == NULL && + apk_db_select_repo(state->db, pkg) == NULL) continue; if (latest == NULL) { -- cgit v1.2.3