forked from vieter-v/libvieter
refactor: Add libarchive link to test compilation area of the Makefile. Created test units with xcursor-dmz as test package.
This commit is contained in:
parent
1da345f8b3
commit
c94ab920a4
7 changed files with 400 additions and 4 deletions
|
|
@ -151,9 +151,9 @@ char *package_to_description(Pkg *pkg) {
|
|||
ADD_STRING("\n\n%%CSIZE%%\n%ld", csize);
|
||||
ADD_STRING("\n\n%%ISIZE%%\n%ld", size);
|
||||
|
||||
char res[65];
|
||||
sha256sum(pkg, res);
|
||||
snprintf(aux, SMALL_BUFF_SIZE, "\n\n%%SHA256SUM%%\n%s", res);
|
||||
char checksum[65];
|
||||
sha256sum(pkg, checksum);
|
||||
snprintf(aux, SMALL_BUFF_SIZE, "\n\n%%SHA256SUM%%\n%s", checksum);
|
||||
if (buff_size < strlen(description) + SMALL_BUFF_SIZE + 1) {
|
||||
description = realloc(description, buff_size * 2);
|
||||
buff_size *= 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue