distrobuilder/managers/zypper.go
Stéphane Graber 7c8186e42d
zypper: Allow package downgrades
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2019-02-28 16:23:42 +01:00

32 lines
486 B
Go

package managers
// NewZypper create a new Manager instance.
func NewZypper() *Manager {
return &Manager{
command: "zypper",
flags: ManagerFlags{
global: []string{
"--non-interactive",
"--gpg-auto-import-keys",
},
clean: []string{
"clean",
"-a",
},
install: []string{
"install",
"--allow-downgrade",
},
remove: []string{
"remove",
},
refresh: []string{
"refresh",
},
update: []string{
"update",
},
},
}
}