From ec5ca9bba56651d88e62d943a472bd8c8331b662 Mon Sep 17 00:00:00 2001 From: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com> Date: Sun, 28 Dec 2025 19:47:12 +0500 Subject: [PATCH 1/2] Ignore .DS_Store files in d2d matching Signed-off-by: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com> --- scanpipe/pipes/d2d.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scanpipe/pipes/d2d.py b/scanpipe/pipes/d2d.py index a428400129..10ce82e9af 100644 --- a/scanpipe/pipes/d2d.py +++ b/scanpipe/pipes/d2d.py @@ -625,6 +625,7 @@ def match_purldb_resources( .to_codebase() .no_status() .has_value("sha1") + .exclude(path__endswith="/.DS_Store") .filter(extension__in=extensions) ) resource_count = to_resources.count() From 7c83e14f9fe11c1f52f77427e9768abea5596f77 Mon Sep 17 00:00:00 2001 From: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com> Date: Sun, 28 Dec 2025 20:05:42 +0500 Subject: [PATCH 2/2] Exclude .DS_Store resources by name Signed-off-by: Muhammad Abdullah Shahid <108458621+abdollahShahid@users.noreply.github.com> --- scanpipe/pipes/d2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanpipe/pipes/d2d.py b/scanpipe/pipes/d2d.py index 10ce82e9af..9c95350fab 100644 --- a/scanpipe/pipes/d2d.py +++ b/scanpipe/pipes/d2d.py @@ -625,7 +625,7 @@ def match_purldb_resources( .to_codebase() .no_status() .has_value("sha1") - .exclude(path__endswith="/.DS_Store") + .exclude(name=".DS_Store") .filter(extension__in=extensions) ) resource_count = to_resources.count()