File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2609,6 +2609,16 @@ class Type(models.TextChoices):
2609
2609
)
2610
2610
2611
2611
objects = CodebaseResourceQuerySet .as_manager ()
2612
+ labels = TaggableManager (through = UUIDTaggedItem , ordering = ["name" ])
2613
+
2614
+ @staticmethod
2615
+ def is_white_out_file (file_path ):
2616
+ return file_path .endswith (".whiteout" )
2617
+
2618
+ def tag_white_out_files (self ):
2619
+ if self .is_white_out_file (self .path ):
2620
+ self .labels .add ("white-out" )
2621
+ self .save ()
2612
2622
2613
2623
class Meta :
2614
2624
indexes = [
Original file line number Diff line number Diff line change 46
46
Resolve packages from manifest, lockfile, and SBOM.
47
47
"""
48
48
49
-
50
- def resolve_manifest_resources (resource , package_registry ):
49
+ def resolve_manifest_resources (resource ,package_registry ):
51
50
"""Get package data from resource."""
52
51
packages = get_packages_from_manifest (resource .location , package_registry ) or []
53
52
54
53
for package_data in packages :
55
54
package_data ["codebase_resources" ] = [resource ]
56
55
56
+ resource .tag_white_out_files ()
57
+
57
58
return packages
58
59
59
60
You can’t perform that action at this time.
0 commit comments