diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-20 16:00:01 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-20 16:00:01 -0500 |
commit | 0c53a5d6fc03427306f821e0a4296e461203cc17 (patch) | |
tree | 00908f058edfcad0712b1e3cd723306ab8203d8d /src/manifest.c | |
parent | 5dee87e48d35eea8ba7022a6ba05b35ac6df167a (diff) | |
download | spmc-0c53a5d6fc03427306f821e0a4296e461203cc17.tar.gz |
Metadata:
* Add .SPM_FILELIST
* Add .SPM_DESCRIPTOR
* Add generators for both to spmbuild
Add new metadata to runtime and arrays
Diffstat (limited to 'src/manifest.c')
-rw-r--r-- | src/manifest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/manifest.c b/src/manifest.c index acc1107..c782940 100644 --- a/src/manifest.c +++ b/src/manifest.c @@ -109,8 +109,7 @@ Manifest *manifest_from(const char *package_dir) { // Read package requirement specs char *archive = join((char *[]) {info->origin, SPM_GLOBAL.repo_target, info->packages[i]->archive, NULL}, DIRSEPS); - char *in_archive = join((char *[]) {".", SPM_META_DEPENDS, NULL}, DIRSEPS); - if (tar_extract_file(archive, in_archive, tmpdir) != 0) { + if (tar_extract_file(archive, SPM_META_DEPENDS, tmpdir) != 0) { // TODO: at this point is the package is invalid? .SPM_DEPENDS should be there... fprintf(stderr, "extraction failure: %s\n", archive); rmdirs(tmpdir); @@ -130,7 +129,6 @@ Manifest *manifest_from(const char *package_dir) { unlink(depfile); free(depfile); free(archive); - free(in_archive); split_free(parts); } |