diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 06:08:15 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 06:08:15 -0500 |
| commit | 5d0a2d4a095d87fbada8a7c5e1e2bf0f5efa648c (patch) | |
| tree | cc2500733a4f4e8547d6b3b49dcb65b76266b083 /build.go | |
| parent | f7f02647de5f52c23202e5c2c67954bfa5af1007 (diff) | |
rewrite this ancient code
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/"}) } |
