mirror of
https://github.com/lxc/distrobuilder.git
synced 2026-02-05 15:46:17 +01:00
- added http source (works with 15.0 and current) - added slackpkg manager (upgrade/clean fail if there are not any packages to upgrade/clean) Signed-off-by: Jake Nabasny <jake@nabasny.com>
39 lines
536 B
Go
39 lines
536 B
Go
package managers
|
|
|
|
type slackpkg struct {
|
|
common
|
|
}
|
|
|
|
func (m *slackpkg) load() error {
|
|
m.commands = managerCommands{
|
|
install: "slackpkg",
|
|
remove: "slackpkg",
|
|
refresh: "slackpkg",
|
|
update: "true",
|
|
clean: "true",
|
|
}
|
|
|
|
m.flags = managerFlags{
|
|
global: []string{
|
|
"-batch=on", "-default_answer=y",
|
|
},
|
|
install: []string{
|
|
"install",
|
|
},
|
|
remove: []string{
|
|
"remove",
|
|
},
|
|
refresh: []string{
|
|
"update",
|
|
},
|
|
update: []string{
|
|
"upgrade-all",
|
|
},
|
|
clean: []string{
|
|
"clean-system",
|
|
},
|
|
}
|
|
|
|
return nil
|
|
}
|