From b9e933c39d1899235ca4905c696fb5e9968186f4 Mon Sep 17 00:00:00 2001 From: Alessandro-Salerno Date: Thu, 7 Nov 2024 22:50:46 +0100 Subject: [PATCH] forgot that --- src/common/cli/directives/commands/remove.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/common/cli/directives/commands/remove.c b/src/common/cli/directives/commands/remove.c index 4426c3e..93537fe 100644 --- a/src/common/cli/directives/commands/remove.c +++ b/src/common/cli/directives/commands/remove.c @@ -28,10 +28,11 @@ #include "tm-mem.h" int cli_cmd_remove(cli_info_t info) { - int ret = EXIT_FAILURE; - const char *pkg_name = info.input; - char *pkg_path = NULL; - const char *artifact_path = NULL; + int ret = EXIT_FAILURE; + const char *pkg_name = info.input; + char *pkg_path = NULL; + const char *artifact_path = NULL; + recipe_t recipe_artifact = {0}; if (NULL == pkg_name) { cli_out_error("You must specify a package name for it to be removed. Use " @@ -77,8 +78,6 @@ int cli_cmd_remove(cli_info_t info) { goto cleanup; } - recipe_t recipe_artifact = {0}; - if (0 != os_fs_path_dyconcat( (char **)&artifact_path, 2, pkg_path, "recipe.tarman") && pkg_parse_tmrcp(&recipe_artifact, artifact_path)) {