diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 06:59:47 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 13:00:08 -0500 |
| commit | 0f84c35582c4498e00839d782fea704cede98cd7 (patch) | |
| tree | 802ed3bc12c449c3fe440974c0c1b04ac923cbbe /stuff.go | |
| parent | fcfbcc4961ca92cc668306739933f509dc664f4f (diff) | |
processed all files to a .pb
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 } |
