fix: remove debug logs and fix cache clearing

This commit is contained in:
2025-06-14 15:05:18 +03:00
parent bece64c132
commit 661d79ce24
6 changed files with 52 additions and 29 deletions

View File

@ -200,7 +200,6 @@ func buildPkgMetadata(
preferedContents *[]string,
) (*nfpm.Info, error) {
pkgInfo := getBasePkgInfo(vars, input)
slog.Warn("vars.Description", "vars.Description", vars.Description, "vars.Description.Resolved", vars.Description.Resolved())
pkgInfo.Description = vars.Description.Resolved()
pkgInfo.Platform = "linux"
pkgInfo.Homepage = vars.Homepage.Resolved()

View File

@ -20,7 +20,6 @@ import (
"errors"
"fmt"
"log/slog"
"runtime/debug"
"github.com/leonelquinteros/gotext"
"github.com/urfave/cli/v2"
@ -45,12 +44,10 @@ func HandleExitCoder(err error) {
slog.Error(err.Error())
}
}
debug.PrintStack()
cli.OsExiter(exitErr.ExitCode())
return
}
debug.PrintStack()
slog.Error(err.Error())
cli.OsExiter(1)
}

View File

@ -58,11 +58,11 @@ msgstr ""
msgid "Done"
msgstr ""
#: fix.go:38
#: fix.go:39
msgid "Attempt to fix problems with ALR"
msgstr ""
#: fix.go:59
#: fix.go:60
msgid "Clearing cache directory"
msgstr ""
@ -74,15 +74,15 @@ msgstr ""
msgid "Unable to read cache directory contents"
msgstr ""
#: fix.go:76
#: fix.go:82
msgid "Unable to remove cache item (%s)"
msgstr ""
#: fix.go:80
#: fix.go:86
msgid "Rebuilding cache"
msgstr ""
#: fix.go:84
#: fix.go:90
msgid "Unable to create new cache directory"
msgstr ""
@ -224,15 +224,15 @@ msgstr ""
msgid "Building package metadata"
msgstr ""
#: internal/build/script_executor.go:276
#: internal/build/script_executor.go:275
msgid "Executing prepare()"
msgstr ""
#: internal/build/script_executor.go:285
#: internal/build/script_executor.go:284
msgid "Executing build()"
msgstr ""
#: internal/build/script_executor.go:314 internal/build/script_executor.go:334
#: internal/build/script_executor.go:313 internal/build/script_executor.go:333
msgid "Executing %s()"
msgstr ""
@ -336,7 +336,7 @@ msgstr ""
msgid "OPTIONS"
msgstr ""
#: internal/cliutils/utils.go:72
#: internal/cliutils/utils.go:69
msgid ""
"This command is deprecated and would be removed in the future, use \"%s\" "
"instead!"

View File

@ -65,11 +65,11 @@ msgstr "Ошибка при перемещении пакета"
msgid "Done"
msgstr "Сделано"
#: fix.go:38
#: fix.go:39
msgid "Attempt to fix problems with ALR"
msgstr "Попытка устранить проблемы с ALR"
#: fix.go:59
#: fix.go:60
msgid "Clearing cache directory"
msgstr "Очистка каталога кэша"
@ -81,15 +81,15 @@ msgstr "Невозможно открыть каталог кэша"
msgid "Unable to read cache directory contents"
msgstr "Невозможно прочитать содержимое каталога кэша"
#: fix.go:76
#: fix.go:82
msgid "Unable to remove cache item (%s)"
msgstr "Невозможно удалить элемент кэша (%s)"
#: fix.go:80
#: fix.go:86
msgid "Rebuilding cache"
msgstr "Восстановление кэша"
#: fix.go:84
#: fix.go:90
msgid "Unable to create new cache directory"
msgstr "Не удалось создать новый каталог кэша"
@ -235,15 +235,15 @@ msgstr ""
msgid "Building package metadata"
msgstr "Сборка метаданных пакета"
#: internal/build/script_executor.go:276
#: internal/build/script_executor.go:275
msgid "Executing prepare()"
msgstr "Выполнение prepare()"
#: internal/build/script_executor.go:285
#: internal/build/script_executor.go:284
msgid "Executing build()"
msgstr "Выполнение build()"
#: internal/build/script_executor.go:314 internal/build/script_executor.go:334
#: internal/build/script_executor.go:313 internal/build/script_executor.go:333
msgid "Executing %s()"
msgstr "Выполнение %s()"
@ -347,7 +347,7 @@ msgstr "КАТЕГОРИЯ"
msgid "OPTIONS"
msgstr "ПАРАМЕТРЫ"
#: internal/cliutils/utils.go:72
#: internal/cliutils/utils.go:69
msgid ""
"This command is deprecated and would be removed in the future, use \"%s\" "
"instead!"
@ -569,6 +569,10 @@ msgstr "Ошибка при проверке обновлений"
msgid "There is nothing to do."
msgstr "Здесь нечего делать."
#, fuzzy
#~ msgid "Failed to clear contents of cache directory"
#~ msgstr "Не удалось создать каталог кэша репозитория"
#~ msgid "Error iterating over packages"
#~ msgstr "Ошибка при переборе пакетов"
@ -587,9 +591,6 @@ msgstr "Здесь нечего делать."
#~ msgid "Unable to create config directory"
#~ msgstr "Не удалось создать каталог конфигурации ALR"
#~ msgid "Unable to create repo cache directory"
#~ msgstr "Не удалось создать каталог кэша репозитория"
#~ msgid "Unable to create package cache directory"
#~ msgstr "Не удалось создать каталог кэша пакетов"