summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-02-06 20:26:18 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2024-02-06 21:53:33 +0100
commita65622a13e2f20fc8746ccdc89cc6a731635a29e (patch)
treed27ce5609ee36688877d8dee521d91ca72034964 /common
parent146aedd7aa74654ead8afce01f63c0756bc31e71 (diff)
Fix rebuild of changed bundled content files
Fixes #12000
Diffstat (limited to 'common')
-rw-r--r--common/paths/pathparser.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/paths/pathparser.go b/common/paths/pathparser.go
index f506eb60f..eceb46b3d 100644
--- a/common/paths/pathparser.go
+++ b/common/paths/pathparser.go
@@ -480,6 +480,11 @@ func (p *Path) IsLeafBundle() bool {
return p.bundleType == PathTypeLeaf
}
+func (p Path) ForBundleType(t PathType) *Path {
+ p.bundleType = t
+ return &p
+}
+
func (p *Path) identifierAsString(i int) string {
i = p.identifierIndex(i)
if i == -1 {