cmd/mkpkg: support depending on stuff.
Signed-off-by: David Anderson <dave@natulte.net>
This commit is contained in:
parent
362d6af4e2
commit
ba2774ea27
@ -42,6 +42,7 @@ func main() {
|
|||||||
prerm := getopt.StringLong("prerm", 0, "", "debian prerm script path")
|
prerm := getopt.StringLong("prerm", 0, "", "debian prerm script path")
|
||||||
postrm := getopt.StringLong("postrm", 0, "", "debian postrm script path")
|
postrm := getopt.StringLong("postrm", 0, "", "debian postrm script path")
|
||||||
replaces := getopt.StringLong("replaces", 0, "", "package which this package replaces, if any")
|
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()
|
getopt.Parse()
|
||||||
|
|
||||||
filesMap, err := parseFiles(*files)
|
filesMap, err := parseFiles(*files)
|
||||||
@ -72,6 +73,9 @@ func main() {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if len(*depends) != 0 {
|
||||||
|
info.Overridables.Depends = strings.Split(*depends, ",")
|
||||||
|
}
|
||||||
if *replaces != "" {
|
if *replaces != "" {
|
||||||
info.Overridables.Replaces = []string{*replaces}
|
info.Overridables.Replaces = []string{*replaces}
|
||||||
info.Overridables.Conflicts = []string{*replaces}
|
info.Overridables.Conflicts = []string{*replaces}
|
||||||
|
Loading…
Reference in New Issue
Block a user