diff options
Diffstat (limited to 'stuff.go')
| -rw-r--r-- | stuff.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -9,12 +9,13 @@ import ( "crypto/sha256" "fmt" "io" - "log" "os" "os/exec" "path/filepath" "strings" "time" + + "go.wit.com/log" ) // scanDebs finds all .deb files and extracts their metadata. @@ -26,6 +27,11 @@ func scanDebs(root string, count int) ([]DebInfo, error) { return err } if !info.IsDir() && strings.HasSuffix(info.Name(), ".deb") { + found := me.pb.FindByFilename(path) + if found != nil { + log.Info("already processed", path) + return nil + } if count == -1 { return nil } |
