Skip to content

Commit

Permalink
output package name definition fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Oct 16, 2024
1 parent 6f9e685 commit 96b5842
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util/builder_target/ymp.vala
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ private static void build_target_ymp_init() {
bool unsafe = get_bool("unsafe");
cd(ymp_target.builder.ymp_build.ympbuild_srcpath);
string metadata = ymp_target.builder.ymp_build.get_ympbuild_metadata();
var yaml = new yamlfile();
yaml.data = metadata;
string srcdata = yaml.get("ymp.source");
string name = yaml.get_value(srcdata, "name");
string release = yaml.get_value(srcdata, "release");
string version = yaml.get_value(srcdata, "version");
ymp_target.builder.output_package_name = name + "_" + version + "_" + release;
if (unsafe || ymp_target.builder.ymp_build.get_ympbuild_value("unsafe") != "") {
metadata += " unsafe: true\n";
}
Expand Down

0 comments on commit 96b5842

Please sign in to comment.