From e033257c0df94b25674a702a0d573355685b0444 Mon Sep 17 00:00:00 2001 From: aliriza Date: Mon, 20 May 2024 02:12:45 +0300 Subject: [PATCH] pacakge.build use build_simple --- src/ccode/job.c | 2 +- src/data/package.vala | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ccode/job.c b/src/ccode/job.c index cae2a27..a52915b 100755 --- a/src/ccode/job.c +++ b/src/ccode/job.c @@ -44,7 +44,7 @@ void jobs_add(jobs* j, void (*callback)(void*), void* args, ...) { job new_job; new_job.callback = callback; new_job.args = malloc(sizeof(args)); - memcpy(new_job.args, args, sizeof(args)); + new_job.args = args; new_job.id = j->total; j->jobs[j->total++] = new_job; j->current++; diff --git a/src/data/package.vala b/src/data/package.vala index b5c3622..a04e5fd 100755 --- a/src/data/package.vala +++ b/src/data/package.vala @@ -296,19 +296,8 @@ public class package { var build = new builder (); create_dir (get_build_dir () + "/" + name); pkgfile.set_target (get_build_dir () + "/" + name); - build.ymp_build.set_ympbuild_srcpath (get_build_dir () + "/" + name); - build.ymp_build.set_ympbuild_buildpath (get_build_dir () + "/" + name); - if (!get_bool ("no-clear")) { - remove_all (build.ymp_build.ympbuild_buildpath); - } - pkgfile.set_target (get_build_dir () + "/" + name); pkgfile.extract_all (); - build.set_build_target (get_build_dir () + "/" + name); - build.ymp_build.set_ympbuild_buildpath (get_build_dir () + "/" + name); - build.build_target.create_metadata_info (); - build.fetch_package_sources (); - build.extract_package_sources (); - build.build_package (); + build.build_single(get_build_dir () + "/" + name); error (1); quarantine_import_from_path (build.ymp_build.ympbuild_buildpath + "/output"); cd (curdir);