Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packagemanager/zypper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ import (
)

// NewZypper creates a new zypper package manager.
//
// The install action passes --allow-vendor-change so that a package which
// replaces one provided by a different vendor resolves non-interactively
// instead of cancelling with exit code 4.
func NewZypper(c cmd.ContextRunner) PackageManager {
return newUniversalPackageManager(c, "zypper", "zypper", "install -y", "remove -y", "refresh")
return newUniversalPackageManager(c, "zypper", "zypper", "install -y --allow-vendor-change", "remove -y", "refresh")
}

// RegisterZypper registers the zypper package manager to a repository.
Expand Down
Loading