From 7fdd396aef9a407d322ff4b365c977a5a5e66cee Mon Sep 17 00:00:00 2001 From: ngn Date: Thu, 15 Aug 2024 04:26:05 +0300 Subject: [PATCH] update: add --yes and --skip arguments to install command --- locale/tr/LC_MESSAGES/confer.po | 12 ++++++------ src/cmd/pull.c | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/locale/tr/LC_MESSAGES/confer.po b/locale/tr/LC_MESSAGES/confer.po index 4a07449..d28a9e2 100644 --- a/locale/tr/LC_MESSAGES/confer.po +++ b/locale/tr/LC_MESSAGES/confer.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-01 19:30+0300\n" +"POT-Creation-Date: 2024-08-15 04:25+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -270,7 +270,7 @@ msgstr "Failed to parse configuration file" msgid "Copying all the targets" msgstr "" -#: src/cmd/gen.c:61 src/cmd/pull.c:150 +#: src/cmd/gen.c:61 src/cmd/pull.c:152 #, fuzzy msgid "Failed to copy the target:" msgstr "Failed to open the directory: %s" @@ -324,19 +324,19 @@ msgstr "Failed to get the location header" msgid "All the target checks were successful" msgstr "" -#: src/cmd/pull.c:144 +#: src/cmd/pull.c:146 msgid "Install the target?" msgstr "" -#: src/cmd/pull.c:145 +#: src/cmd/pull.c:147 msgid "Skipping target" msgstr "" -#: src/cmd/pull.c:178 +#: src/cmd/pull.c:180 msgid "Installing all the requirements" msgstr "" -#: src/cmd/pull.c:181 +#: src/cmd/pull.c:183 #, fuzzy msgid "Failed to run the " msgstr "Failed to init curl" diff --git a/src/cmd/pull.c b/src/cmd/pull.c index 5923d8d..ef5f729 100644 --- a/src/cmd/pull.c +++ b/src/cmd/pull.c @@ -133,10 +133,12 @@ copy: cur = repo_cfg.t_first; info(_("Copying all the targets")); - char **argv = malloc(sizeof(char *)); + char **argv = malloc(sizeof(char *) * 3); int argc = 1, indx = 1; argv[0] = "install"; + argv[1] = "--skip"; + argv[2] = "--yes"; while (cur && ++counter > 0) { target_print(cur);