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/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/add.c') diff --git a/src/add.c b/src/add.c index 180615c..8f067b7 100644 --- a/src/add.c +++ b/src/add.c @@ -118,7 +118,7 @@ static int add_main(void *ctx, int argc, char **argv) if (strstr(argv[i], ".apk") != NULL) { struct apk_package *pkg; - pkg = apk_db_pkg_add_file(&db, argv[i]); + pkg = apk_pkg_read(&db, argv[i], APK_SIGN_VERIFY); if (pkg == NULL) { apk_error("Unable to read '%s'", argv[i]); goto err; -- cgit v1.2.3-60-g2f50