summaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 06:08:15 -0500
committerJeff Carr <[email protected]>2025-10-15 06:08:15 -0500
commit5d0a2d4a095d87fbada8a7c5e1e2bf0f5efa648c (patch)
treecc2500733a4f4e8547d6b3b49dcb65b76266b083 /build.go
parentf7f02647de5f52c23202e5c2c67954bfa5af1007 (diff)
rewrite this ancient code
Diffstat (limited to 'build.go')
-rw-r--r--build.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/build.go b/build.go
index 45bdc11..8753b43 100644
--- a/build.go
+++ b/build.go
@@ -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/"})
}