mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-30 17:42:06 -04:00
system updater: make all distros use terminal
This commit is contained in:
@@ -12,9 +12,8 @@ type Backend interface {
|
||||
Repo() RepoKind
|
||||
IsAvailable(ctx context.Context) bool
|
||||
NeedsAuth() bool
|
||||
RunsInTerminal() bool
|
||||
CheckUpdates(ctx context.Context) ([]Package, error)
|
||||
Upgrade(ctx context.Context, opts UpgradeOptions, onLine func(string)) error
|
||||
UpgradeCommand(opts UpgradeOptions) (string, error)
|
||||
}
|
||||
|
||||
type Selection struct {
|
||||
@@ -37,11 +36,10 @@ func (s Selection) Info() []BackendInfo {
|
||||
out := make([]BackendInfo, 0, len(all))
|
||||
for _, b := range all {
|
||||
out = append(out, BackendInfo{
|
||||
ID: b.ID(),
|
||||
DisplayName: b.DisplayName(),
|
||||
Repo: b.Repo(),
|
||||
NeedsAuth: b.NeedsAuth(),
|
||||
RunsInTerminal: b.RunsInTerminal(),
|
||||
ID: b.ID(),
|
||||
DisplayName: b.DisplayName(),
|
||||
Repo: b.Repo(),
|
||||
NeedsAuth: b.NeedsAuth(),
|
||||
})
|
||||
}
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user