diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 10:35:43 -0500 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 10:35:43 -0500 | 
| commit | 5fc6ca2351c2f9d4e78ba7297a768cbb556ec3e3 (patch) | |
| tree | bae53c3521416bf3cf8a76bfce8f45122c44905d /src | |
| parent | 23adb30ad46fa977fbcc0ce786dbf852e68324f9 (diff) | |
| download | stasis-5fc6ca2351c2f9d4e78ba7297a768cbb556ec3e3.tar.gz | |
This is what I get for using a GUI... Moved code was not moved. Removed code was not removed. Fantastic.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 62 | 
1 files changed, 0 insertions, 62 deletions
| @@ -242,8 +242,6 @@ int main(int argc, char *argv[], char *arge[]) {          exit(1);      } -    printf(BANNER, VERSION, AUTHOR); -      if (delivery_init(&ctx, ini, cfg)) {          msg(OMC_MSG_ERROR | OMC_MSG_L1, "Failed to initialize delivery context\n");          exit(1); @@ -266,52 +264,6 @@ int main(int argc, char *argv[], char *arge[]) {          exit(1);      } -    // Expose variables for use with the template engine -    tpl_register("meta.name", ctx.meta.name); -    tpl_register("meta.version", ctx.meta.version); -    tpl_register("meta.codename", ctx.meta.codename); -    tpl_register("meta.mission", ctx.meta.mission); -    tpl_register("meta.python", ctx.meta.python); -    tpl_register("meta.python_compact", ctx.meta.python_compact); -    tpl_register("info.release_name", ctx.info.release_name); -    tpl_register("conda.installer_baseurl", ctx.conda.installer_baseurl); -    tpl_register("conda.installer_name", ctx.conda.installer_name); -    tpl_register("conda.installer_version", ctx.conda.installer_version); -    tpl_register("conda.installer_arch", ctx.conda.installer_arch); -    tpl_register("conda.installer_platform", ctx.conda.installer_platform); -    tpl_register("system.arch", ctx.system.arch); -    tpl_register("system.platform", ctx.system.platform[DELIVERY_PLATFORM_RELEASE]); - -    char missionfile[PATH_MAX] = {0}; - -    if (getenv("OMC_SYSCONFDIR")) { -        sprintf(missionfile, "%s/%s/%s/%s.ini", -                getenv("OMC_SYSCONFDIR"), "mission", ctx.meta.mission, ctx.meta.mission); -    } else { -        sprintf(missionfile, "%s/%s/%s/%s.ini", -                globals.sysconfdir, "mission", ctx.meta.mission, ctx.meta.mission); -    } - -    struct INIFILE *cfg_mission; -    cfg_mission = ini_open(missionfile); -    if (!cfg_mission) { -        msg(OMC_MSG_ERROR | OMC_MSG_L2, "Failed to read misson configuration: %s, %s\n", missionfile, strerror(errno)); -        exit(1); -    } - -    /* -    union INIVal x; -    ini_getval(cfg_mission, "template:readme.md.in", "destination", INIVAL_TYPE_STR, &x); -    char *output = tpl_render(x.as_char_p); -    if (!output) { -        fprintf(stderr, "Render failed!\n"); -        exit(1); -    } -    puts(output); -    tpl_free(); - -    exit(0); -     */      runtime_apply(ctx.runtime.environ);      snprintf(env_name, sizeof(env_name_testing) - 1, "%s", ctx.info.release_name);      snprintf(env_name_testing, sizeof(env_name) - 1, "%s_test", env_name); @@ -419,19 +371,6 @@ int main(int argc, char *argv[], char *arge[]) {      delivery_defer_packages(&ctx, DEFER_CONDA);      delivery_defer_packages(&ctx, DEFER_PIP); -    // TODO: wheels would be nice, but can't right now -    //if (ctx.conda.pip_packages_defer) { -    //    if (!delivery_build_wheels(&ctx)) { -    //        exit(1); -    //    } -    //    if (delivery_copy_wheel_artifacts(&ctx)) { -    //        exit(1); -    //    } -    //    if (delivery_index_wheel_artifacts(&ctx)) { -    //        exit(1); -    //    } -    //} -      if (ctx.conda.conda_packages_defer && strlist_count(ctx.conda.conda_packages_defer)) {          msg(OMC_MSG_L2, "Building Conda recipe(s)\n");          if (delivery_build_recipes(&ctx)) { @@ -516,7 +455,6 @@ int main(int argc, char *argv[], char *arge[]) {          // optional extras          ini_free(&cfg);      } -    ini_free(&cfg_mission);      delivery_free(&ctx);      globals_free();      tpl_free(); | 
