Skip to content

Commit

Permalink
groups: use depends when computing checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed May 30, 2024
1 parent 72a7f96 commit 336b12e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libpkg/pkg_checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,13 @@ pkg_checksum_generate(struct pkg *pkg, char *dest, size_t destlen,
}

while (pkg_deps(pkg, &dep) == EPKG_OK) {
xasprintf(&olduid, "%s~%s", dep->name, dep->origin);
tll_push_back(entries, pkg_kv_new("depend", olduid));
free(olduid);
if (is_group) {
tll_push_back(entries, pkg_kv_new("depend", dep->name));
} else {
xasprintf(&olduid, "%s~%s", dep->name, dep->origin);
tll_push_back(entries, pkg_kv_new("depend", olduid));
free(olduid);
}
}

tll_foreach(pkg->provides, p) {
Expand Down

0 comments on commit 336b12e

Please sign in to comment.