From aa882df5116df56d95b3750c28fab5013b680c7a Mon Sep 17 00:00:00 2001 From: Reid Rankin Date: Fri, 24 Jan 2020 14:59:49 +0000 Subject: document mysterious SHA-1 blob in database.c --- src/database.c | 2 ++ 1 file changed, 2 insertions(+) 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 = { -- cgit v1.2.3-70-g09d2