diff options
Diffstat (limited to 'doList.go')
| -rw-r--r-- | doList.go | 25 |
1 files changed, 1 insertions, 24 deletions
@@ -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 } |
