summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-15 16:47:43 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-15 16:47:43 +0300
commit623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab (patch)
treec918121336688cb0ce699c1521991643e1def381 /src/database.c
parentba76c5f48ae584c4085ef97fb16e5a6f72adfe25 (diff)
downloadapk-tools-623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab.tar.gz
apk-tools-623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab.tar.bz2
apk-tools-623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab.tar.xz
apk-tools-623bc9c5a820906e26c0cc52d0ab230c3c0bc1ab.zip
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".
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
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);