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:
@@ -15,11 +15,10 @@ func init() {
|
||||
|
||||
type rpmOstreeBackend struct{}
|
||||
|
||||
func (rpmOstreeBackend) ID() string { return "rpm-ostree" }
|
||||
func (rpmOstreeBackend) DisplayName() string { return "rpm-ostree" }
|
||||
func (rpmOstreeBackend) Repo() RepoKind { return RepoOSTree }
|
||||
func (rpmOstreeBackend) NeedsAuth() bool { return true }
|
||||
func (rpmOstreeBackend) RunsInTerminal() bool { return false }
|
||||
func (rpmOstreeBackend) ID() string { return "rpm-ostree" }
|
||||
func (rpmOstreeBackend) DisplayName() string { return "rpm-ostree" }
|
||||
func (rpmOstreeBackend) Repo() RepoKind { return RepoOSTree }
|
||||
func (rpmOstreeBackend) NeedsAuth() bool { return true }
|
||||
|
||||
func (b rpmOstreeBackend) IsAvailable(ctx context.Context) bool {
|
||||
if !commandExists("rpm-ostree") {
|
||||
@@ -116,10 +115,9 @@ func bootedDeployment(deps []ostreeDeployment) *ostreeDeployment {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (rpmOstreeBackend) Upgrade(ctx context.Context, opts UpgradeOptions, onLine func(string)) error {
|
||||
argv := []string{"rpm-ostree", "upgrade"}
|
||||
func (rpmOstreeBackend) UpgradeCommand(opts UpgradeOptions) (string, error) {
|
||||
if opts.DryRun {
|
||||
argv = append(argv, "--check")
|
||||
return "rpm-ostree upgrade --check", nil
|
||||
}
|
||||
return Run(ctx, argv, RunOptions{OnLine: onLine})
|
||||
return "rpm-ostree upgrade", nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user