diff --git a/mrepo.py b/mrepo.py index 23325ed..06be1e0 100755 --- a/mrepo.py +++ b/mrepo.py @@ -483,7 +483,13 @@ def mirror(self): global EXITCODE if CONFIG.hooks['pre-update']: - run('%s %s' % (CONFIG.hooks['pre-update'], self.srcdir)) + run(' '.join([ + CONFIG.hooks['pre-update'], + 'pre-update', + self.name, + self.url, + self.srcdir, + ])) ### Make a snapshot of the directory self.oldlist = self.rpmlist() @@ -515,7 +521,13 @@ def mirror(self): self.newlist = self.rpmlist() if CONFIG.hooks['post-update']: - run('%s %s' % (CONFIG.hooks['post-update'], self.srcdir)) + run(' '.join([ + CONFIG.hooks['post-update'], + 'post-update', + self.name, + self.url, + self.srcdir, + ])) def rpmlist(self): "Capture a list of packages in the repository"