summaryrefslogtreecommitdiff
path: root/mirrorsSupport.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-10 20:21:58 -0500
committerJeff Carr <[email protected]>2025-10-11 04:31:37 -0500
commit3051255baec96c599de54ad883cc7310877b43be (patch)
treef1f74ff1198e50f0b2fd82f533f433bca11d665a /mirrorsSupport.go
parent69c9e0b5ee9a25baa422c4bd7fc43883e9f96333 (diff)
test pb walk on debInfo msg
Diffstat (limited to 'mirrorsSupport.go')
-rw-r--r--mirrorsSupport.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/mirrorsSupport.go b/mirrorsSupport.go
index 9001231..f9daa83 100644
--- a/mirrorsSupport.go
+++ b/mirrorsSupport.go
@@ -10,8 +10,11 @@ import (
"os"
"path"
"path/filepath"
+ "strings"
+ "go.wit.com/lib/gui/shell"
"go.wit.com/log"
+ "google.golang.org/protobuf/encoding/prototext"
)
var verbose bool
@@ -21,6 +24,19 @@ func (pb *Package) DeleteString(varname string) string {
return "todo"
}
+func (pb *Package) Print() {
+ shell.RunVerbose([]string{"dpkg", "-I", pb.Filename})
+ log.Info("\nNEW PB START")
+ log.Info(strings.TrimSpace(prototext.Format(pb)))
+ log.Info("NEW PB END\n")
+
+ log.Info("Attempt to walk pb.DebInfo")
+ if err := printDebInfoStrings(pb); err != nil {
+ log.Info("pb.walk error:", err)
+ }
+
+}
+
// makes /home/mirrors/debian/dists/ for use by 'apt update'
func (pb *Packages) MakeDists() (string, error) {
log.Printf("Attempting to make dists/ in %s with %d .deb files\n", pb.BaseDir, pb.Len())