diff --git a/internal/config/config.go b/internal/config/config.go index f8457c6..f8e8509 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -45,13 +45,8 @@ var defaultConfig = &types.Config{ RootCmd: "sudo", PagerStyle: "native", IgnorePkgUpdates: []string{}, - AutoPull: true, - Repos: []types.Repo{ - { - Name: "default", - URL: "https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git", - }, - }, + AutoPull: false, + Repos: []types.Repo{}, } func New() *ALRConfig { diff --git a/internal/shutils/handlers/fakeroot.go b/internal/shutils/handlers/fakeroot.go index b8d02c5..bc0090b 100644 --- a/internal/shutils/handlers/fakeroot.go +++ b/internal/shutils/handlers/fakeroot.go @@ -29,9 +29,9 @@ import ( "syscall" "time" + "gitea.plemya-x.ru/Plemya-x/fakeroot" "mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/interp" - "gitea.plemya-x.ru/Plemya-x/fakeroot" ) // FakerootExecHandler was extracted from github.com/mvdan/sh/interp/handler.go diff --git a/internal/translations/default.pot b/internal/translations/default.pot index b0cc59f..c6eb205 100644 --- a/internal/translations/default.pot +++ b/internal/translations/default.pot @@ -182,39 +182,39 @@ msgstr "" msgid "Choose which optional package(s) to install" msgstr "" -#: internal/config/config.go:64 +#: internal/config/config.go:59 msgid "Error opening config file, using defaults" msgstr "" -#: internal/config/config.go:77 +#: internal/config/config.go:72 msgid "Error decoding config file, using defaults" msgstr "" -#: internal/config/config.go:89 +#: internal/config/config.go:84 msgid "Unable to detect user config directory" msgstr "" -#: internal/config/config.go:97 +#: internal/config/config.go:92 msgid "Unable to create ALR config directory" msgstr "" -#: internal/config/config.go:106 +#: internal/config/config.go:101 msgid "Unable to create ALR config file" msgstr "" -#: internal/config/config.go:112 +#: internal/config/config.go:107 msgid "Error encoding default configuration" msgstr "" -#: internal/config/config.go:121 +#: internal/config/config.go:116 msgid "Unable to detect cache directory" msgstr "" -#: internal/config/config.go:131 +#: internal/config/config.go:126 msgid "Unable to create repo cache directory" msgstr "" -#: internal/config/config.go:137 +#: internal/config/config.go:132 msgid "Unable to create package cache directory" msgstr "" diff --git a/internal/translations/po/ru/default.po b/internal/translations/po/ru/default.po index 3d5e548..83b93b3 100644 --- a/internal/translations/po/ru/default.po +++ b/internal/translations/po/ru/default.po @@ -189,43 +189,43 @@ msgstr "Выберите, какой пакет использовать для msgid "Choose which optional package(s) to install" msgstr "Выберите, какой дополнительный пакет(ы) следует установить" -#: internal/config/config.go:64 +#: internal/config/config.go:59 msgid "Error opening config file, using defaults" msgstr "" "Ошибка при открытии конфигурационного файла, используются значения по " "умолчанию" -#: internal/config/config.go:77 +#: internal/config/config.go:72 msgid "Error decoding config file, using defaults" msgstr "" "Ошибка при декодировании конфигурационного файла, используются значения по " "умолчанию" -#: internal/config/config.go:89 +#: internal/config/config.go:84 msgid "Unable to detect user config directory" msgstr "Не удалось обнаружить каталог конфигурации пользователя" -#: internal/config/config.go:97 +#: internal/config/config.go:92 msgid "Unable to create ALR config directory" msgstr "Не удалось создать каталог конфигурации ALR" -#: internal/config/config.go:106 +#: internal/config/config.go:101 msgid "Unable to create ALR config file" msgstr "Не удалось создать конфигурационный файл ALR" -#: internal/config/config.go:112 +#: internal/config/config.go:107 msgid "Error encoding default configuration" msgstr "Ошибка кодирования конфигурации по умолчанию" -#: internal/config/config.go:121 +#: internal/config/config.go:116 msgid "Unable to detect cache directory" msgstr "Не удалось обнаружить каталог кэша" -#: internal/config/config.go:131 +#: internal/config/config.go:126 msgid "Unable to create repo cache directory" msgstr "Не удалось создать каталог кэша репозитория" -#: internal/config/config.go:137 +#: internal/config/config.go:132 msgid "Unable to create package cache directory" msgstr "Не удалось создать каталог кэша пакетов" diff --git a/scripts/install.sh b/scripts/install.sh index 1fd7a72..c642b4a 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,3 +1,22 @@ +# This file was originally part of the project "LURE - Linux User REpository", created by Elara Musayelyan. +# It has been modified as part of "ALR - Any Linux Repository" by Евгений Храмов. +# +# ALR - Any Linux Repository +# Copyright (C) 2025 Евгений Храмов +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + info() { echo $'\x1b[32m[ИНФО]\x1b[0m' $@ }