update: add --yes and --skip arguments to install command

This commit is contained in:
ngn 2024-08-15 04:26:05 +03:00
parent ea28e9ee1b
commit 7fdd396aef
2 changed files with 9 additions and 7 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \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" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -270,7 +270,7 @@ msgstr "Failed to parse configuration file"
msgid "Copying all the targets" msgid "Copying all the targets"
msgstr "" msgstr ""
#: src/cmd/gen.c:61 src/cmd/pull.c:150 #: src/cmd/gen.c:61 src/cmd/pull.c:152
#, fuzzy #, fuzzy
msgid "Failed to copy the target:" msgid "Failed to copy the target:"
msgstr "Failed to open the directory: %s" 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" msgid "All the target checks were successful"
msgstr "" msgstr ""
#: src/cmd/pull.c:144 #: src/cmd/pull.c:146
msgid "Install the target?" msgid "Install the target?"
msgstr "" msgstr ""
#: src/cmd/pull.c:145 #: src/cmd/pull.c:147
msgid "Skipping target" msgid "Skipping target"
msgstr "" msgstr ""
#: src/cmd/pull.c:178 #: src/cmd/pull.c:180
msgid "Installing all the requirements" msgid "Installing all the requirements"
msgstr "" msgstr ""
#: src/cmd/pull.c:181 #: src/cmd/pull.c:183
#, fuzzy #, fuzzy
msgid "Failed to run the " msgid "Failed to run the "
msgstr "Failed to init curl" msgstr "Failed to init curl"

View File

@ -133,10 +133,12 @@ copy:
cur = repo_cfg.t_first; cur = repo_cfg.t_first;
info(_("Copying all the targets")); info(_("Copying all the targets"));
char **argv = malloc(sizeof(char *)); char **argv = malloc(sizeof(char *) * 3);
int argc = 1, indx = 1; int argc = 1, indx = 1;
argv[0] = "install"; argv[0] = "install";
argv[1] = "--skip";
argv[2] = "--yes";
while (cur && ++counter > 0) { while (cur && ++counter > 0) {
target_print(cur); target_print(cur);