diff --git a/locale/tr/LC_MESSAGES/matt.po b/locale/tr/LC_MESSAGES/matt.po index 3d49190..267087c 100644 --- a/locale/tr/LC_MESSAGES/matt.po +++ b/locale/tr/LC_MESSAGES/matt.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-16 06:48+0300\n" +"POT-Creation-Date: 2024-08-17 19:06+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -329,8 +329,7 @@ msgstr "(" msgid "Failed to download " msgstr "Failed to download " -#: src/cmd/install.c:179 src/cmd/remove.c:59 src/cmd/remove.c:99 -#: src/cmd/update.c:88 +#: src/cmd/install.c:179 src/cmd/remove.c:99 src/cmd/update.c:88 msgid "Failed to remove " msgstr "Failed to remove " @@ -358,6 +357,11 @@ msgstr "Listing " msgid "Listing options for the remove command:" msgstr "Listing options for the remove command:" +#: src/cmd/remove.c:59 +#, fuzzy +msgid "Cannot remove " +msgstr "Failed to remove " + #: src/cmd/remove.c:67 msgid "Nothing to do (no packages to remove)" msgstr "Nothing to do (no packages to remove)" diff --git a/src/cmd/remove.c b/src/cmd/remove.c index c4c7739..3d91f94 100644 --- a/src/cmd/remove.c +++ b/src/cmd/remove.c @@ -55,12 +55,12 @@ bool cmd_remove(lm_ctx_t *ctx, config_t *config, args_t *args){ goto end; } - if(!lm_ctx_removeable(ctx, &pkgs[count-1])){ - error(_("Failed to remove "FG_BOLD"%s"FG_RESET"_"FG_BOLD FG_GREEN"%s"FG_RESET": %s"), pkgs[count-1].name, pkgs[count-1].version, lm_strerror()); + if(!args_get_bool(args, "break") && !lm_ctx_removeable(ctx, &pkgs[count-1])){ + error(_("Cannot remove "FG_BOLD"%s"FG_RESET"_"FG_BOLD FG_GREEN"%s"FG_RESET": %s"), pkgs[count-1].name, pkgs[count-1].version, lm_strerror()); goto end; } - size += pkgs[count].size; + size += pkgs[count-1].size; } if(NULL == pkgs){