Compare commits
No commits in common. "7770675a8d8774c25d86bc706a9b7962c8169540" and "fff8b777fea80b9cfc5aef58a003afd5063d26c7" have entirely different histories.
7770675a8d
...
fff8b777fe
@ -1,40 +0,0 @@
|
|||||||
// 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/>.
|
|
||||||
|
|
||||||
//go:build e2e
|
|
||||||
|
|
||||||
package e2etests_test
|
|
||||||
|
|
||||||
import (
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"github.com/alecthomas/assert/v2"
|
|
||||||
"github.com/efficientgo/e2e"
|
|
||||||
)
|
|
||||||
|
|
||||||
func TestE2EIssue32Interactive(t *testing.T) {
|
|
||||||
dockerMultipleRun(
|
|
||||||
t,
|
|
||||||
"issue-32-interactive",
|
|
||||||
COMMON_SYSTEMS,
|
|
||||||
func(t *testing.T, r e2e.Runnable) {
|
|
||||||
err := r.Exec(e2e.NewCommand(
|
|
||||||
"alr", "--interactive=false", "remove", "ca-certificates",
|
|
||||||
))
|
|
||||||
assert.NoError(t, err)
|
|
||||||
},
|
|
||||||
)
|
|
||||||
}
|
|
@ -169,10 +169,7 @@ func RemoveCmd() *cli.Command {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := mgr.Remove(&manager.Opts{
|
err := mgr.Remove(nil, c.Args().Slice()...)
|
||||||
AsRoot: true,
|
|
||||||
NoConfirm: !c.Bool("interactive"),
|
|
||||||
}, c.Args().Slice()...)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
slog.Error(gotext.Get("Error removing packages"), "err", err)
|
slog.Error(gotext.Get("Error removing packages"), "err", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -170,7 +170,7 @@ msgstr ""
|
|||||||
msgid "Command remove expected at least 1 argument, got %d"
|
msgid "Command remove expected at least 1 argument, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: install.go:177
|
#: install.go:174
|
||||||
msgid "Error removing packages"
|
msgid "Error removing packages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ msgstr "Удалить установленный пакет"
|
|||||||
msgid "Command remove expected at least 1 argument, got %d"
|
msgid "Command remove expected at least 1 argument, got %d"
|
||||||
msgstr "Для команды remove ожидался хотя бы 1 аргумент, получено %d"
|
msgstr "Для команды remove ожидался хотя бы 1 аргумент, получено %d"
|
||||||
|
|
||||||
#: install.go:177
|
#: install.go:174
|
||||||
msgid "Error removing packages"
|
msgid "Error removing packages"
|
||||||
msgstr "Ошибка при удалении пакетов"
|
msgstr "Ошибка при удалении пакетов"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user