From f936d78d5fa6fd3457ae9b1a3eeab3580cd82ea2 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 19 Aug 2009 15:37:21 +0300 Subject: state: require an available package for re-installs otherwise we would not be able to pick a package that exists as a candidate for re-installation. fixes #138. --- src/state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index e308f48..94afe86 100644 --- a/src/state.c +++ b/src/state.c @@ -310,7 +310,8 @@ int apk_state_lock_dependency(struct apk_state *state, continue; } - if (apk_flags & APK_PREFER_AVAILABLE) { + if ((apk_flags & APK_PREFER_AVAILABLE) || + (name->flags & APK_NAME_REINSTALL)) { if (latest->repos != 0 && pkg->repos == 0) continue; -- cgit v1.2.3-60-g2f50