summaryrefslogtreecommitdiff
path: root/makePackagesFile.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 09:19:04 -0500
committerJeff Carr <[email protected]>2025-10-22 09:19:04 -0500
commit570417ac12815116e4cdf90bbb656e01a1321a56 (patch)
treedf90806fd512b33142d1dc2d112290d7c1d1b2f8 /makePackagesFile.go
parentb28cd1762a2601b6acb082ac54c62aef166a5758 (diff)
step1v0.0.29
Diffstat (limited to 'makePackagesFile.go')
-rw-r--r--makePackagesFile.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/makePackagesFile.go b/makePackagesFile.go
index c30acde..1bc95f1 100644
--- a/makePackagesFile.go
+++ b/makePackagesFile.go
@@ -11,7 +11,7 @@ import (
"strings"
"time"
- "go.wit.com/lib/config"
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/debian"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
@@ -19,8 +19,8 @@ import (
func doPurge() error {
// all paths should be relative to this BaseDir path
- if err := os.Chdir(config.GetPanic("BaseDir")); err != nil {
- log.Info("could not change to dir", config.GetPanic("BaseDir"), err)
+ if err := os.Chdir(ENV.GetPanic("BaseDir")); err != nil {
+ log.Info("could not change to dir", ENV.GetPanic("BaseDir"), err)
panic("could not change to dir")
}
var err error
@@ -30,7 +30,7 @@ func doPurge() error {
}
func makePackagesFile(arch string) (string, error) {
- os.Chdir(config.GetPanic("BaseDir"))
+ os.Chdir(ENV.GetPanic("BaseDir"))
if err := os.MkdirAll("dists/sid/main/binary-"+arch, 0755); err != nil {
log.Info("did not work", err)
@@ -115,11 +115,11 @@ func doSignRelease() error {
// fmt.Fprintf(rfile, "SHA256:\n")
rfile.Close()
- gpgKeyID := config.GetPanic("gpgKeyID")
+ gpgKeyID := ENV.GetPanic("gpgKeyID")
// Sign the file
log.Println("Signing with GPG key:", gpgKeyID)
- distPath := config.GetPanic("distPath")
+ distPath := ENV.GetPanic("distPath")
// Create InRelease
cmdClearSign := exec.Command("gpg", "--default-key", gpgKeyID, "--clearsign", "-o", filepath.Join(distPath, "InRelease"), releasePath)
if err := runCommand(cmdClearSign); err != nil {