From 3051255baec96c599de54ad883cc7310877b43be Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Oct 2025 20:21:58 -0500 Subject: test pb walk on debInfo msg --- mirrorsSupport.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'mirrorsSupport.go') 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()) -- cgit v1.2.3