refactor: Decided to not return char** in function that creates the package description after all, now returns char*.

The method I was trying started to irk me when I thought of creating a test unit for it. Also fixed some other issues I found in the package_to_description function (SHA256SUM section still missing).
This commit is contained in:
GreekStapler 2023-01-25 22:15:07 +01:00
parent 01688fd546
commit 7561a74793
2 changed files with 49 additions and 27 deletions

View file

@ -21,6 +21,6 @@ typedef struct pkg {
Pkg *package_read_archive(const char *pkg_path);
void package_free(Pkg ** ptp);
char **package_to_description(Pkg *pkg);
char *package_to_description(Pkg *pkg);
#endif