bundlewrap/bundles/archive/metadata.py
mwiegand fb113d1557 wip
2021-06-19 23:44:16 +02:00

22 lines
378 B
Python

defaults = {
'archive': {},
}
@metadata_reactor.provides(
'gocryptfs/paths',
)
def gocryptfs(metadata):
paths = {}
for path in metadata.get('archive/paths'):
paths[path] = {
'mountpoint': f'/mnt/gocryptfs{path}',
'reverse': True,
}
return {
'gocryptfs': {
'paths': paths,
},
}