Skip to content

Commit

Permalink
fix minor bug about builder
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 30, 2024
1 parent c931153 commit effa2ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ccode/archive-extract.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ static void archive_extract_fn(archive *data, char *path, bool all) {
while (archive_read_next_header(data->archive, &entry) == ARCHIVE_OK) {
char *entry_path = archive_entry_pathname(entry);
char *target_file = NULL;
if(data->target_path == NULL){
ferror_add("Archive extract path is not defined: %s", data->archive_path);
error(3);
}
if(strlen(entry_path) == 0){
continue;
} else if (strcmp(entry_path, path) != 0 && !all) {
Expand Down
1 change: 1 addition & 0 deletions src/util/build.vala
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ public class builder {
}
if (tar.is_archive(srcfile)) {
tar.load(srcfile);
tar.set_target(ymp_build.ympbuild_buildpath);
tar.extract_all();
}
}
Expand Down

0 comments on commit effa2ac

Please sign in to comment.