summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2014-05-19 11:50:10 +0300
committerTimo Teräs <timo.teras@iki.fi>2014-05-19 11:50:10 +0300
commit1dc70477b5e9b07808001093ec33d2530d1799e1 (patch)
treec725ea0196c7a4834da5fa73d164bd96acc3eeee /src/database.c
parent7e64edfad62da8e180f660820bfa7a2fc321a72a (diff)
downloadapk-tools-1dc70477b5e9b07808001093ec33d2530d1799e1.tar.gz
apk-tools-1dc70477b5e9b07808001093ec33d2530d1799e1.tar.bz2
apk-tools-1dc70477b5e9b07808001093ec33d2530d1799e1.tar.xz
apk-tools-1dc70477b5e9b07808001093ec33d2530d1799e1.zip
solver: fix installation of non-repository packages during tmpfs boot
allow packages in the cache's installed to be selected for installation by the solver. add test case for the issue.
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index 356ba22..3f1b6f6 100644
--- a/src/database.c
+++ b/src/database.c
@@ -760,6 +760,8 @@ int apk_db_index_read(struct apk_database *db, struct apk_bstream *bs, int repo)
if (repo >= 0) {
pkg->repos |= BIT(repo);
+ } else if (repo == -2) {
+ pkg->cached_non_repository = 1;
} else if (repo == -1 && ipkg == NULL) {
/* Installed package without files */
ipkg = apk_pkg_install(db, pkg);