From 623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 15 Jul 2009 16:47:43 +0300 Subject: index: reuse existing index (fixes #25) replace the old 'delete' option, with 'index'. the idea is that one can provide existing index files to take cached meta-data of the package from (assumes package has not been modified if index is newer, and package size has not changed). this way one always gives the list of .apk files to include in the new index, and the old index is used only as "cache". --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database.c') diff --git a/src/database.c b/src/database.c index c80e9a9..80b6fc3 100644 --- a/src/database.c +++ b/src/database.c @@ -991,7 +991,7 @@ static int write_index_entry(apk_hash_item item, void *ctx) struct apk_package *pkg = (struct apk_package *) item; int r; - if (pkg->repos != 0) + if (pkg->filename == NULL) return 0; r = apk_pkg_write_index_entry(pkg, iwctx->os); -- cgit v1.2.3-70-g09d2