diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index 7358ada..626375e 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-08 16:32+0300\n" +"POT-Creation-Date: 2024-08-08 19:07+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/install.c b/src/ctx/install.c index a312e61..98b8680 100644 --- a/src/ctx/install.c +++ b/src/ctx/install.c @@ -20,8 +20,7 @@ bool __lm_ctx_save_install(lm_ctx_t *ctx, lm_pkg_t *pkg, char *install_path){ return false; } - // no need to save empty install script :) - if(is_empty(install_path)) + if(!exists(install_path, NULL) || is_empty(install_path)) return true; char script_name[strlen(pkg->data.name)+15]; @@ -42,8 +41,7 @@ bool __lm_ctx_save_install(lm_ctx_t *ctx, lm_pkg_t *pkg, char *install_path){ } bool __lm_ctx_run_install(char *root, char *install_path) { - // no need to run empty install script :) - if(is_empty(install_path)) + if(!exists(install_path, NULL) || is_empty(install_path)) return true; char *args[] = {"/bin/bash", install_path, NULL}, *oldpwd = NULL; diff --git a/src/package/extract.c b/src/package/extract.c index 42ea0df..7cad106 100644 --- a/src/package/extract.c +++ b/src/package/extract.c @@ -42,7 +42,6 @@ lm_pkg_files_t *lm_package_extract(lm_pkg_t *pkg, char *target){ if(!__lm_package_extract_check(files->data_file) || !__lm_package_extract_check(files->hashes_file) || !__lm_package_extract_check(files->changes_file) || - !__lm_package_extract_check(files->install_file) || !__lm_package_extract_check(files->files_archive)){ goto end; }