summaryrefslogtreecommitdiff
path: root/src/apk_database.h
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-16 15:14:23 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-16 15:14:23 +0200
commit1b5422fb4af4bb836d15e07c86128507147315d0 (patch)
tree3157af3499f45ab0ba28177e64e33363f2518b71 /src/apk_database.h
parent6b6c10cdf244d3a307df4c339cde774600d49f49 (diff)
downloadapk-tools-1b5422fb4af4bb836d15e07c86128507147315d0.tar.gz
apk-tools-1b5422fb4af4bb836d15e07c86128507147315d0.tar.bz2
apk-tools-1b5422fb4af4bb836d15e07c86128507147315d0.tar.xz
apk-tools-1b5422fb4af4bb836d15e07c86128507147315d0.zip
index: write out only packages specified in command line
Ignore /etc/apk/repositories, so additional repositories that depend on other repositories need to have explicit --repository reference on command line when generating the index (to avoid warnings).
Diffstat (limited to 'src/apk_database.h')
-rw-r--r--src/apk_database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h
index e2f16fa..9710939 100644
--- a/src/apk_database.h
+++ b/src/apk_database.h
@@ -108,7 +108,7 @@ struct apk_package *apk_db_pkg_add_file(struct apk_database *db, const char *fil
struct apk_package *apk_db_get_pkg(struct apk_database *db, csum_t sum);
struct apk_package *apk_db_get_file_owner(struct apk_database *db, apk_blob_t filename);
-void apk_db_index_write(struct apk_database *db, struct apk_ostream *os);
+int apk_db_index_write(struct apk_database *db, struct apk_ostream *os);
int apk_db_add_repository(apk_database_t db, apk_blob_t repository);
int apk_db_recalculate_and_commit(struct apk_database *db);