summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--readControlFile.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/readControlFile.go b/readControlFile.go
index 184767b..9d2bf0d 100644
--- a/readControlFile.go
+++ b/readControlFile.go
@@ -19,10 +19,14 @@ func (c *controlBox) readControlFile() error {
// return errors.New("'control': file not found")
// if this happens, make up a fake control file
pairs["Maintainer"] = "go-deb build"
- pairs["Architecture"] = "x86"
+ pairs["Architecture"] = "amd64" // TODO: figure this out
pairs["Recommends"] = ""
pairs["Source"] = "notsure"
- pairs["Description"] = "put something here"
+ if argv.Repo == "" {
+ pairs["Description"] = "put something here"
+ } else {
+ pairs["Description"] = argv.Repo
+ }
}
defer file.Close()