diff options
author | Reid Rankin <reidrankin@gmail.com> | 2020-01-24 14:59:49 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-01-25 16:33:54 +0200 |
commit | aa882df5116df56d95b3750c28fab5013b680c7a (patch) | |
tree | 33c0b9cf331e75587c2186557c09e95f38fd7877 | |
parent | 6cc3e6a1dee8cf7c80ef59b2d23a0e5980af7fe9 (diff) | |
download | apk-tools-aa882df5116df56d95b3750c28fab5013b680c7a.tar.gz apk-tools-aa882df5116df56d95b3750c28fab5013b680c7a.tar.bz2 apk-tools-aa882df5116df56d95b3750c28fab5013b680c7a.tar.xz apk-tools-aa882df5116df56d95b3750c28fab5013b680c7a.zip |
document mysterious SHA-1 blob in database.c
-rw-r--r-- | src/database.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c index be46608..3f1904f 100644 --- a/src/database.c +++ b/src/database.c @@ -1409,6 +1409,8 @@ static int add_repos_from_file(void *ctx, int dirfd, const char *file) static void apk_db_setup_repositories(struct apk_database *db, const char *cache_dir) { + /* This is the SHA-1 of the string 'cache'. Repo hashes like this + * are truncated to APK_CACHE_CSUM_BYTES and always use SHA-1. */ db->repos[APK_REPOSITORY_CACHED] = (struct apk_repository) { .url = cache_dir, .csum.data = { |