summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 18:53:40 -0500
committerJeff Carr <[email protected]>2025-09-11 18:53:40 -0500
commitaedb5a3bef4eb587e56744837f528836986e9f92 (patch)
tree38f3f1f112e9ab080733a4be626c81cc3debb4bb
parentcc75c2dd6cfbaa301e2b1890256ddb367b0bf151 (diff)
make sure arch is set
-rw-r--r--build.go3
-rw-r--r--readControlFile.go1
2 files changed, 4 insertions, 0 deletions
diff --git a/build.go b/build.go
index becbcd4..1fd1258 100644
--- a/build.go
+++ b/build.go
@@ -256,6 +256,9 @@ func writeDebianControlFile(repo *gitpb.Repo) bool {
fmt.Fprintln(cf, "Package:", repo.Control["Package"]) // c.Package.String())
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"
+ }
fmt.Fprintln(cf, "Architecture:", repo.Control["Architecture"]) // c.Architecture.String())
writeControlVar(cf, repo, "Depends")
diff --git a/readControlFile.go b/readControlFile.go
index 6518ca1..d6a4c0d 100644
--- a/readControlFile.go
+++ b/readControlFile.go
@@ -135,6 +135,7 @@ func readControlFile(repo *gitpb.Repo) error {
}
*/
}
+ pairs["Architecture"] = "amd64" // TODO: figure this out
if err := scanner.Err(); err != nil {
return err