fix: missing implementation for --break
This commit is contained in:
parent
6b1f46166f
commit
48bb4d7bb1
@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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)"
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user