cmd/mkpkg: support depending on stuff.

Signed-off-by: David Anderson <dave@natulte.net>
pull/259/head
David Anderson 4 years ago
parent 362d6af4e2
commit ba2774ea27

@ -42,6 +42,7 @@ func main() {
prerm := getopt.StringLong("prerm", 0, "", "debian prerm script path")
postrm := getopt.StringLong("postrm", 0, "", "debian postrm script path")
replaces := getopt.StringLong("replaces", 0, "", "package which this package replaces, if any")
depends := getopt.StringLong("depends", 0, "comma-separated list of packages this package depends on")
getopt.Parse()
filesMap, err := parseFiles(*files)
@ -72,6 +73,9 @@ func main() {
},
})
if len(*depends) != 0 {
info.Overridables.Depends = strings.Split(*depends, ",")
}
if *replaces != "" {
info.Overridables.Replaces = []string{*replaces}
info.Overridables.Conflicts = []string{*replaces}

Loading…
Cancel
Save