|
|
@ -58,6 +58,7 @@ func main() {
|
|
|
|
postrm := flag.String("postrm", "", "debian postrm script path")
|
|
|
|
postrm := flag.String("postrm", "", "debian postrm script path")
|
|
|
|
replaces := flag.String("replaces", "", "package which this package replaces, if any")
|
|
|
|
replaces := flag.String("replaces", "", "package which this package replaces, if any")
|
|
|
|
depends := flag.String("depends", "", "comma-separated list of packages this package depends on")
|
|
|
|
depends := flag.String("depends", "", "comma-separated list of packages this package depends on")
|
|
|
|
|
|
|
|
recommends := flag.String("recommends", "", "comma-separated list of packages this package recommends")
|
|
|
|
flag.Parse()
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
|
|
|
|
filesMap, err := parseFiles(*files)
|
|
|
|
filesMap, err := parseFiles(*files)
|
|
|
@ -93,6 +94,9 @@ func main() {
|
|
|
|
if len(*depends) != 0 {
|
|
|
|
if len(*depends) != 0 {
|
|
|
|
info.Overridables.Depends = strings.Split(*depends, ",")
|
|
|
|
info.Overridables.Depends = strings.Split(*depends, ",")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if len(*recommends) != 0 {
|
|
|
|
|
|
|
|
info.Overridables.Recommends = strings.Split(*recommends, ",")
|
|
|
|
|
|
|
|
}
|
|
|
|
if *replaces != "" {
|
|
|
|
if *replaces != "" {
|
|
|
|
info.Overridables.Replaces = []string{*replaces}
|
|
|
|
info.Overridables.Replaces = []string{*replaces}
|
|
|
|
info.Overridables.Conflicts = []string{*replaces}
|
|
|
|
info.Overridables.Conflicts = []string{*replaces}
|
|
|
|