summaryrefslogtreecommitdiff
path: root/doList.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-13 01:03:25 -0500
committerJeff Carr <[email protected]>2025-10-13 03:29:12 -0500
commitc48a87214660ab91e97361e3d227c3bcd93da3f9 (patch)
tree42547590b9d7f6fdf19c863b895ee339770c5d42 /doList.go
parentd3278977a4b086dffe323a0870900a380f78a703 (diff)
make the checksums
Diffstat (limited to 'doList.go')
-rw-r--r--doList.go25
1 files changed, 1 insertions, 24 deletions
diff --git a/doList.go b/doList.go
index ffcf8d5..2aa8205 100644
--- a/doList.go
+++ b/doList.go
@@ -1,30 +1,7 @@
package main
-import (
- "os"
-
- "go.wit.com/lib/config"
- "go.wit.com/log"
-)
-
func doList() (string, error) {
- os.Chdir(me.pb.BaseDir)
+ me.pb.SortFilename()
footer := me.pb.PrintTable()
- log.Info("found so far:", footer)
-
- var changed bool
- for p := range me.pb.IterAll() {
- if config.Exists(p.Filename) {
- // everything is fine
- continue
- }
- log.Info("deleting missing file from PB", p.Package, p.Filename)
- me.pb.Delete(p)
- changed = true
- }
-
- if changed {
- me.pb.Save()
- }
return footer, nil
}