From ff3f7b58c3e3b462b8a8b1c8f61fe5a68e0905ff Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 4 Oct 2025 20:38:39 -0500 Subject: notes on aptly --- doGit.go | 9 +++++++++ doUpgrade.go | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doGit.go b/doGit.go index 167342c..a886a3b 100644 --- a/doGit.go +++ b/doGit.go @@ -8,6 +8,7 @@ import ( "path/filepath" "strings" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -36,6 +37,14 @@ func doGit() error { } if argv.Git.Who != nil { + if _, err := fhelp.CheckCmd("git-who"); err != nil { + if fhelp.QuestionUser("install git-who") { + log.Info("go install -v -x github.com/sinclairtarget/git-who@latest") + } else { + log.Info("not installing") + } + me.sh.GoodExit("git who should be installed") + } cmd := []string{"git", "who"} shell.RunVerbose(cmd) okExit("") diff --git a/doUpgrade.go b/doUpgrade.go index d73cf56..8f0ae4e 100644 --- a/doUpgrade.go +++ b/doUpgrade.go @@ -25,7 +25,10 @@ func doPackageList(all bool) { } else { installed.PrintTable() } - log.Info("put aptly help here") + log.Info("aptly repo -remove-files -force-replace add wit /home/aptly/incoming/autogenpb_0.5.16_amd64.deb") + log.Info("aptly repo remove wit basicwindow") + log.Info("aptly snapshot create wit-v0.8.3 from repo wit") + log.Info("aptly publish snapshot wit-v0.8.3") } func doUpgrade() error { -- cgit v1.2.3