From ba2774ea272564b7ee73f808c446f161d6099eb4 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 4 Apr 2020 18:38:02 -0700 Subject: [PATCH] cmd/mkpkg: support depending on stuff. Signed-off-by: David Anderson --- cmd/mkpkg/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/mkpkg/main.go b/cmd/mkpkg/main.go index c550f46c2..dc3c436da 100644 --- a/cmd/mkpkg/main.go +++ b/cmd/mkpkg/main.go @@ -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}