diff options
| author | Jeff Carr <[email protected]> | 2025-10-14 10:46:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-14 10:46:26 -0500 |
| commit | 87cb75966a79788f7c6192c0397b92c09114b104 (patch) | |
| tree | a6888c955c107166ebfc90fc3f6ec60ac1b7b34f /control.write.go | |
| parent | baebea24dd4c7bbbbef2b1aaa7c230e43cacf4e4 (diff) | |
riscv64 builds should workv0.22.164
Diffstat (limited to 'control.write.go')
| -rw-r--r-- | control.write.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/control.write.go b/control.write.go index 358774d..2ee4cad 100644 --- a/control.write.go +++ b/control.write.go @@ -3,11 +3,10 @@ package main import ( "fmt" "os" - "strconv" "strings" "time" - "github.com/go-cmd/cmd" + "go.wit.com/lib/cobol" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -52,7 +51,7 @@ func writeDebianControlFile(repo *gitpb.Repo) bool { // fmt.Fprintln(cf, "Source:", repo.Control["Source"]) // c.Source.String()) fmt.Fprintln(cf, "Version:", repo.Control["Version"]) if repo.Control["Architecture"] == "" { - repo.Control["Architecture"] = "amd64" + repo.Control["Architecture"] = argv.Arch } fmt.Fprintln(cf, "Architecture:", repo.Control["Architecture"]) // c.Architecture.String()) @@ -65,10 +64,10 @@ func writeDebianControlFile(repo *gitpb.Repo) bool { writeControlVar(cf, repo, "GoPath") writeControlVar(cf, repo, "URL") - stamp := time.Now().UTC().Format("2006/01/02 15:04:05 UTC") + t := time.Now() // update to now now despite what the GUI is showing - fmt.Fprintln(cf, "Package-Build-Date:", stamp) - fmt.Fprintln(cf, "Git-Tag-Date:", "todo: get from repo") + fmt.Fprintln(cf, "Package-Build-Date:", cobol.Time(t)) + fmt.Fprintln(cf, "Git-Tag-Date:", "go-deb todo: get this from git") desc, _ := repo.Control["Description"] // c.Description.String() parts := strings.Split(desc, "\n") @@ -118,6 +117,7 @@ func computeControlValues(repo *gitpb.Repo) bool { return true } +/* // stamp := time.Now().UTC().Format("2006/01/02 15:04:05 UTC") func getDateStamp(tag string) string { @@ -138,3 +138,4 @@ func getDateStamp(tag string) string { gitTagDate := time.Unix(gitTagTimestampInt, 0) return gitTagDate.UTC().Format("2006-01-02_15:04:05_UTC") // close to RFC3339 } +*/ |
