diff options
Diffstat (limited to 'build.go')
| -rw-r--r-- | build.go | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -7,6 +7,7 @@ import ( "path/filepath" "time" + "go.wit.com/lib/debian" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -217,9 +218,15 @@ func buildPackage(repo *gitpb.Repo) (bool, error) { } } - if !writeDebianControlFile(repo) { - return false, errors.New("write control file") + controlfile := debian.MakeControlFile(me.pb) + controlfile += "\n" + log.Info(controlfile) + if err := os.WriteFile("files/DEBIAN/control", []byte(controlfile), 0644); err != nil { + me.sh.BadExit("write err files/DEBIAN/control", err) } + // if !writeDebianControlFile(repo) { + // return false, errors.New("write control file") + // } if shell.Exists("postinst") { repo.RunVerbose([]string{"cp", "postinst", "files/DEBIAN/"}) } |
