fix: remove default repo and disable autoPull by default
This commit is contained in:
		| @@ -45,13 +45,8 @@ var defaultConfig = &types.Config{ | |||||||
| 	RootCmd:          "sudo", | 	RootCmd:          "sudo", | ||||||
| 	PagerStyle:       "native", | 	PagerStyle:       "native", | ||||||
| 	IgnorePkgUpdates: []string{}, | 	IgnorePkgUpdates: []string{}, | ||||||
| 	AutoPull:         true, | 	AutoPull:         false, | ||||||
| 	Repos: []types.Repo{ | 	Repos:            []types.Repo{}, | ||||||
| 		{ |  | ||||||
| 			Name: "default", |  | ||||||
| 			URL:  "https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git", |  | ||||||
| 		}, |  | ||||||
| 	}, |  | ||||||
| } | } | ||||||
|  |  | ||||||
| func New() *ALRConfig { | func New() *ALRConfig { | ||||||
|   | |||||||
| @@ -29,9 +29,9 @@ import ( | |||||||
| 	"syscall" | 	"syscall" | ||||||
| 	"time" | 	"time" | ||||||
|  |  | ||||||
|  | 	"gitea.plemya-x.ru/Plemya-x/fakeroot" | ||||||
| 	"mvdan.cc/sh/v3/expand" | 	"mvdan.cc/sh/v3/expand" | ||||||
| 	"mvdan.cc/sh/v3/interp" | 	"mvdan.cc/sh/v3/interp" | ||||||
| 	"gitea.plemya-x.ru/Plemya-x/fakeroot" |  | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // FakerootExecHandler was extracted from github.com/mvdan/sh/interp/handler.go | // FakerootExecHandler was extracted from github.com/mvdan/sh/interp/handler.go | ||||||
|   | |||||||
| @@ -182,39 +182,39 @@ msgstr "" | |||||||
| msgid "Choose which optional package(s) to install" | msgid "Choose which optional package(s) to install" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:64 | #: internal/config/config.go:59 | ||||||
| msgid "Error opening config file, using defaults" | msgid "Error opening config file, using defaults" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:77 | #: internal/config/config.go:72 | ||||||
| msgid "Error decoding config file, using defaults" | msgid "Error decoding config file, using defaults" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:89 | #: internal/config/config.go:84 | ||||||
| msgid "Unable to detect user config directory" | msgid "Unable to detect user config directory" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:97 | #: internal/config/config.go:92 | ||||||
| msgid "Unable to create ALR config directory" | msgid "Unable to create ALR config directory" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:106 | #: internal/config/config.go:101 | ||||||
| msgid "Unable to create ALR config file" | msgid "Unable to create ALR config file" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:112 | #: internal/config/config.go:107 | ||||||
| msgid "Error encoding default configuration" | msgid "Error encoding default configuration" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:121 | #: internal/config/config.go:116 | ||||||
| msgid "Unable to detect cache directory" | msgid "Unable to detect cache directory" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:131 | #: internal/config/config.go:126 | ||||||
| msgid "Unable to create repo cache directory" | msgid "Unable to create repo cache directory" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: internal/config/config.go:137 | #: internal/config/config.go:132 | ||||||
| msgid "Unable to create package cache directory" | msgid "Unable to create package cache directory" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -189,43 +189,43 @@ msgstr "Выберите, какой пакет использовать для | |||||||
| msgid "Choose which optional package(s) to install" | msgid "Choose which optional package(s) to install" | ||||||
| msgstr "Выберите, какой дополнительный пакет(ы) следует установить" | msgstr "Выберите, какой дополнительный пакет(ы) следует установить" | ||||||
|  |  | ||||||
| #: internal/config/config.go:64 | #: internal/config/config.go:59 | ||||||
| msgid "Error opening config file, using defaults" | msgid "Error opening config file, using defaults" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Ошибка при открытии конфигурационного файла, используются значения по " | "Ошибка при открытии конфигурационного файла, используются значения по " | ||||||
| "умолчанию" | "умолчанию" | ||||||
|  |  | ||||||
| #: internal/config/config.go:77 | #: internal/config/config.go:72 | ||||||
| msgid "Error decoding config file, using defaults" | msgid "Error decoding config file, using defaults" | ||||||
| msgstr "" | msgstr "" | ||||||
| "Ошибка при декодировании конфигурационного файла, используются значения по " | "Ошибка при декодировании конфигурационного файла, используются значения по " | ||||||
| "умолчанию" | "умолчанию" | ||||||
|  |  | ||||||
| #: internal/config/config.go:89 | #: internal/config/config.go:84 | ||||||
| msgid "Unable to detect user config directory" | msgid "Unable to detect user config directory" | ||||||
| msgstr "Не удалось обнаружить каталог конфигурации пользователя" | msgstr "Не удалось обнаружить каталог конфигурации пользователя" | ||||||
|  |  | ||||||
| #: internal/config/config.go:97 | #: internal/config/config.go:92 | ||||||
| msgid "Unable to create ALR config directory" | msgid "Unable to create ALR config directory" | ||||||
| msgstr "Не удалось создать каталог конфигурации ALR" | msgstr "Не удалось создать каталог конфигурации ALR" | ||||||
|  |  | ||||||
| #: internal/config/config.go:106 | #: internal/config/config.go:101 | ||||||
| msgid "Unable to create ALR config file" | msgid "Unable to create ALR config file" | ||||||
| msgstr "Не удалось создать конфигурационный файл ALR" | msgstr "Не удалось создать конфигурационный файл ALR" | ||||||
|  |  | ||||||
| #: internal/config/config.go:112 | #: internal/config/config.go:107 | ||||||
| msgid "Error encoding default configuration" | msgid "Error encoding default configuration" | ||||||
| msgstr "Ошибка кодирования конфигурации по умолчанию" | msgstr "Ошибка кодирования конфигурации по умолчанию" | ||||||
|  |  | ||||||
| #: internal/config/config.go:121 | #: internal/config/config.go:116 | ||||||
| msgid "Unable to detect cache directory" | msgid "Unable to detect cache directory" | ||||||
| msgstr "Не удалось обнаружить каталог кэша" | msgstr "Не удалось обнаружить каталог кэша" | ||||||
|  |  | ||||||
| #: internal/config/config.go:131 | #: internal/config/config.go:126 | ||||||
| msgid "Unable to create repo cache directory" | msgid "Unable to create repo cache directory" | ||||||
| msgstr "Не удалось создать каталог кэша репозитория" | msgstr "Не удалось создать каталог кэша репозитория" | ||||||
|  |  | ||||||
| #: internal/config/config.go:137 | #: internal/config/config.go:132 | ||||||
| msgid "Unable to create package cache directory" | msgid "Unable to create package cache directory" | ||||||
| msgstr "Не удалось создать каталог кэша пакетов" | msgstr "Не удалось создать каталог кэша пакетов" | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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 <http://www.gnu.org/licenses/>. | ||||||
|  |  | ||||||
| info() { | info() { | ||||||
|   echo $'\x1b[32m[ИНФО]\x1b[0m' $@ |   echo $'\x1b[32m[ИНФО]\x1b[0m' $@ | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user