summaryrefslogtreecommitdiff
path: root/stuff.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-09 06:59:47 -0500
committerJeff Carr <[email protected]>2025-10-09 13:00:08 -0500
commit0f84c35582c4498e00839d782fea704cede98cd7 (patch)
tree802ed3bc12c449c3fe440974c0c1b04ac923cbbe /stuff.go
parentfcfbcc4961ca92cc668306739933f509dc664f4f (diff)
processed all files to a .pb
Diffstat (limited to 'stuff.go')
-rw-r--r--stuff.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/stuff.go b/stuff.go
index 38a68e8..7fdc531 100644
--- a/stuff.go
+++ b/stuff.go
@@ -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
}