diff options
Diffstat (limited to 'mirrorsSupport.go')
| -rw-r--r-- | mirrorsSupport.go | 16 |
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()) |
