summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-08-06 17:19:01 +0300
committerTimo Teras <timo.teras@iki.fi>2009-08-06 17:19:01 +0300
commita120a96db4c821f51dff953a3fc0475b4870a5c3 (patch)
tree61556e863761dfc6a4042e5b472e01980976b04d
parent8ae244db7d3b13bd1f5f87479127158afee99576 (diff)
downloadapk-tools-a120a96db4c821f51dff953a3fc0475b4870a5c3.tar.bz2
apk-tools-a120a96db4c821f51dff953a3fc0475b4870a5c3.tar.xz
state: installed package does not need downloading
so do not skip it even if it's no longer available.
-rw-r--r--src/state.c5
1 files changed, 2 insertions, 3 deletions
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) {