items/zfs_dataset: remove automatic dependency detection for now
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good

This basically reverts commit 1086ed28c3
This commit is contained in:
Franzi 2021-07-17 19:40:41 +02:00
parent cee2a41771
commit 84d55c246a
Signed by: kunsi
GPG key ID: 12E3D2136B818350
12 changed files with 56 additions and 8 deletions

View file

@ -119,13 +119,16 @@ class ZFSDataset(Item):
# XXX Could be optimized by finding the "largest"
# parent only.
yield item.id
elif self.attributes.get('mountpoint'):
for item_type in ['directory', 'file', 'git_deploy']:
if (
item.ITEM_TYPE_NAME == item_type and
item.name.startswith('{}:{}'.format(item_type, self.attributes['mountpoint']))
):
yield item.id
# XXX This populates 'needs', not 'needed_by'. We have opened
# an issue: https://github.com/bundlewrap/bundlewrap/issues/648
# elif self.attributes.get('mountpoint'):
# for item_type in ['directory', 'file', 'git_deploy']:
# if (
# item.ITEM_TYPE_NAME == item_type and
# item.name.startswith('{}:{}'.format(item_type, self.attributes['mountpoint']))
# ):
# yield item.id
if not pool_item_found: