diff --git a/assets/coverage-badge.svg b/assets/coverage-badge.svg
index db9bea9..718bd0e 100644
--- a/assets/coverage-badge.svg
+++ b/assets/coverage-badge.svg
@@ -11,7 +11,7 @@
coverage
coverage
- 19.6%
- 19.6%
+ 19.5%
+ 19.5%
diff --git a/assets/i18n-ru-badge.svg b/assets/i18n-ru-badge.svg
index 2a5d418..b5c7350 100644
--- a/assets/i18n-ru-badge.svg
+++ b/assets/i18n-ru-badge.svg
@@ -12,7 +12,7 @@
ru translate
ru translate
- 100.00%
- 100.00%
+ 99.00%
+ 99.00%
diff --git a/build.go b/build.go
index 120d650..5df2bb2 100644
--- a/build.go
+++ b/build.go
@@ -50,9 +50,9 @@ func BuildCmd() *cli.Command {
Usage: gotext.Get("Path to the build script"),
},
&cli.StringFlag{
- Name: "script-package",
- Aliases: []string{"sp"},
- Usage: gotext.Get("Specify package in script (for multi package script only)"),
+ Name: "subpackage",
+ Aliases: []string{"sb"},
+ Usage: gotext.Get("Specify subpackage in script (for multi package script only)"),
},
&cli.StringFlag{
Name: "package",
diff --git a/install.go b/install.go
index ab59e40..c152d16 100644
--- a/install.go
+++ b/install.go
@@ -119,6 +119,11 @@ func InstallCmd() *cli.Command {
BashComplete: func(c *cli.Context) {
cfg := config.New()
db := database.New(cfg)
+ err := db.Init(c.Context)
+ if err != nil {
+ slog.Error(gotext.Get("Error initialization database"), "err", err)
+ os.Exit(1)
+ }
result, err := db.GetPkgs(c.Context, "true")
if err != nil {
slog.Error(gotext.Get("Error getting packages"), "err", err)
diff --git a/internal/dl/dl_test.go b/internal/dl/dl_test.go
index 317c457..cf58f75 100644
--- a/internal/dl/dl_test.go
+++ b/internal/dl/dl_test.go
@@ -91,7 +91,7 @@ func TestDownloadWithoutCache(t *testing.T) {
},
{
name: "git download",
- path: "git+%s/git-downloader/git/Plemya-x/xpamych-alr-repo",
+ path: "git+%s/git-downloader/git/Plemya-x/alr-repo",
expected: func(t *testing.T, err error, tmpdir string) {
assert.NoError(t, err)
diff --git a/internal/translations/default.pot b/internal/translations/default.pot
index a9ba2a6..081361f 100644
--- a/internal/translations/default.pot
+++ b/internal/translations/default.pot
@@ -18,7 +18,7 @@ msgid "Path to the build script"
msgstr ""
#: build.go:55
-msgid "Specify package in script (for multi package script only)"
+msgid "Specify subpackage in script (for multi package script only)"
msgstr ""
#: build.go:60
@@ -158,15 +158,15 @@ msgstr ""
msgid "Command install expected at least 1 argument, got %d"
msgstr ""
-#: install.go:146
+#: install.go:151
msgid "Remove an installed package"
msgstr ""
-#: install.go:151
+#: install.go:156
msgid "Command remove expected at least 1 argument, got %d"
msgstr ""
-#: install.go:163
+#: install.go:168
msgid "Error removing packages"
msgstr ""
diff --git a/internal/translations/po/ru/default.po b/internal/translations/po/ru/default.po
index 710135a..52b09fe 100644
--- a/internal/translations/po/ru/default.po
+++ b/internal/translations/po/ru/default.po
@@ -25,7 +25,8 @@ msgid "Path to the build script"
msgstr "Путь к скрипту сборки"
#: build.go:55
-msgid "Specify package in script (for multi package script only)"
+#, fuzzy
+msgid "Specify subpackage in script (for multi package script only)"
msgstr "Укажите пакет в скрипте (только для многопакетного скрипта)"
#: build.go:60
@@ -165,15 +166,15 @@ msgstr "Установить новый пакет"
msgid "Command install expected at least 1 argument, got %d"
msgstr "Для команды install ожидался хотя бы 1 аргумент, получено %d"
-#: install.go:146
+#: install.go:151
msgid "Remove an installed package"
msgstr "Удалить установленный пакет"
-#: install.go:151
+#: install.go:156
msgid "Command remove expected at least 1 argument, got %d"
msgstr "Для команды remove ожидался хотя бы 1 аргумент, получено %d"
-#: install.go:163
+#: install.go:168
msgid "Error removing packages"
msgstr "Ошибка при удалении пакетов"