diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-14 19:14:05 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-14 19:14:05 +0300 |
commit | 981bc118f8bdf1df6c23c096a52c890a87ee3e5e (patch) | |
tree | 73063efdb73ce4ee3511cc827181ff9c6b28427e /src/add.c | |
parent | e9eaedff5071b94d166973f13df90e47ff4936fe (diff) | |
download | apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.gz apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.bz2 apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.tar.xz apk-tools-981bc118f8bdf1df6c23c096a52c890a87ee3e5e.zip |
db: live with sha1 and md5
this also convers scripts file to a tar archive.
Diffstat (limited to 'src/add.c')
-rw-r--r-- | src/add.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -103,7 +103,8 @@ static int add_main(void *ctx, int argc, char **argv) goto err; } virtpkg->name = apk_db_get_name(&db, APK_BLOB_STR(actx->virtpkg)); - csum_blob(APK_BLOB_STR(virtpkg->name->name), virtpkg->csum); + apk_blob_checksum(APK_BLOB_STR(virtpkg->name->name), + apk_default_checksum(), &virtpkg->csum); virtpkg->version = strdup("0"); virtpkg->description = strdup("virtual meta package"); virtdep = apk_dep_from_pkg(&db, virtpkg); |