]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Also set SOLVABLE_DOWNLOADSIZE for apkv2 indexes
authorMichael Schroeder <mls@suse.de>
Mon, 20 Jan 2025 15:47:10 +0000 (16:47 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 20 Jan 2025 15:47:10 +0000 (16:47 +0100)
ext/repo_apk.c

index 7d80bfcef873d1096803963d15873146963fb6a1..9f10940c0aa50f9cff0cb68c2624129c2c051959 100644 (file)
@@ -661,6 +661,8 @@ apk_process_index(Repo *repo, Repodata *data, struct tarhead *th, int flags)
        repodata_set_num(data, s - pool->solvables, SOLVABLE_BUILDTIME, strtoull(line + 2, 0, 10));
       else if (line[0] == 'I')
        repodata_set_num(data, s - pool->solvables, SOLVABLE_INSTALLSIZE, strtoull(line + 2, 0, 10));
+      else if (line[0] == 'S')
+       repodata_set_num(data, s - pool->solvables, SOLVABLE_DOWNLOADSIZE, strtoull(line + 2, 0, 10));
       else if (line[0] == 'A')
        s->arch = pool_str2id(pool, line + 2, 1);
       else if (line[0] == 'L')