Skip to content

Commit

Permalink
fix ymp builder install operation
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Oct 16, 2024
1 parent b93316a commit 0842195
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 5 additions & 0 deletions src/operations/package-manager/build.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ private static int build_operation (string[] args) {
error_add("Build path: %s (%s)".printf(bd.ymp_build.ympbuild_buildpath, arg));
return r;
}
if(get_bool("install")) {
quarantine_import_from_path(bd.ymp_build.ympbuild_buildpath);
quarantine_install ();
quarantine_reset ();
}
}
cd (current_directory);
return 0;
Expand Down
10 changes: 1 addition & 9 deletions src/util/build.vala
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,7 @@ public class builder {
restore_env();
return 1;
}
if (get_bool("install")) {
if (0 != install_main({
binpkg
})) {
set_bool("unsafe", unsafe);
restore_env();
return 1;
}
}

string target = output + "/" + output_package_name + "_" + build_target.arch + "." + build_target.suffix;
move_file(binpkg, target);
}
Expand Down

0 comments on commit 0842195

Please sign in to comment.