diff --git a/include/all.h b/include/all.h index 07e1aae..eddddd8 100644 --- a/include/all.h +++ b/include/all.h @@ -22,7 +22,7 @@ // clang-format on -#define LM_VERSION "24.08" +#define LM_VERSION "24.09" #include "ctx.h" #include "error.h" diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index 29306ee..cdd68ff 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-22 02:54+0300\n" +"POT-Creation-Date: 2024-08-22 08:38+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/ctx/resolve.c b/src/ctx/resolve.c index 8d691fd..b560dad 100644 --- a/src/ctx/resolve.c +++ b/src/ctx/resolve.c @@ -20,18 +20,23 @@ bool __lm_ctx_resolve_contains(lm_pkg_t *pkg, lm_ctx_resolve_list_t *list){ } bool __lm_ctx_resolve(lm_ctx_t *ctx, lm_ctx_resolve_list_t *list, lm_pkg_t *pkg, bool resolve_depends){ - if(__lm_ctx_resolve_contains(pkg, list)) + if(__lm_ctx_resolve_contains(pkg, list)){ + pdebug(__func__, "%s is already in the list, skipping", pkg->data.name); return true; + } if(NULL == list->packages) list->packages = malloc(sizeof(lm_pkg_t *)*(++list->count)); else list->packages = realloc(list->packages, sizeof(lm_pkg_t *)*(++list->count)); + pdebug(__func__, "adding %s to the list", pkg->data.name); list->packages[list->count-1] = pkg; - if(!resolve_depends || NULL == pkg->data.depends) + if(!resolve_depends || NULL == pkg->data.depends){ + pdebug(__func__, "skipping depend resolve for %s", pkg->data.name); return true; + } lm_pkg_t *depend = NULL;