From 6b471bb614beaeadcfa08008918ef6a2d93ac7e0 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 16 Jul 2009 15:16:05 +0300 Subject: various: new style index generation change the index generation to do old index, or the new style index where package identity is sha1 of control block and it's contained within an .tar.gz to allow signing in future. --- src/apk_package.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/apk_package.h') diff --git a/src/apk_package.h b/src/apk_package.h index b874e0c..bf30350 100644 --- a/src/apk_package.h +++ b/src/apk_package.h @@ -30,6 +30,10 @@ struct apk_name; #define APK_PKG_NOT_INSTALLED 0 #define APK_PKG_INSTALLED 1 +#define APK_SIGN_VERIFY 0 +#define APK_SIGN_GENERATE_V1 1 +#define APK_SIGN_GENERATE 2 + struct apk_script { struct hlist_node script_list; unsigned int type; @@ -80,7 +84,7 @@ int apk_deps_write(struct apk_dependency_array *deps, struct apk_ostream *os); int apk_script_type(const char *name); struct apk_package *apk_pkg_new(void); -struct apk_package *apk_pkg_read(struct apk_database *db, const char *name); +struct apk_package *apk_pkg_read(struct apk_database *db, const char *name, int indexstyle); void apk_pkg_free(struct apk_package *pkg); int apk_pkg_parse_name(apk_blob_t apkname, apk_blob_t *name, apk_blob_t *version); -- cgit v1.2.3