Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement pre/post generate hooks
Browse files Browse the repository at this point in the history
jrha committed Jul 19, 2024
1 parent 20e2b4e commit 690417b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mrepo.py
Original file line number Diff line number Diff line change
@@ -404,6 +404,8 @@ def genmetadata(self):
if not repo.lock('generate'):
continue

_call_hook('pre-generate')

self.linksync(repo, [repo.srcdir])

repo.check()
@@ -413,6 +415,8 @@ def genmetadata(self):
repo.writesha1()
repo.unlock('generate')

_call_hook('post-generate')

def linksync(self, repo, srcdirs=None):
if not srcdirs:
srcdirs = [repo.srcdir]

0 comments on commit 690417b

Please sign in to comment.