| |
@@ -5458,6 +5458,10 @@
|
| |
with open(os.path.join(self.datadir, "EMPTY_REPO"), 'wt') as fo:
|
| |
fo.write("This repo is empty because its tag has no content for this arch\n")
|
| |
|
| |
+ tag = self.session.getTag(rinfo['tag_id'], event=rinfo['create_event'], strict=True)['name']
|
| |
+ self.run_callbacks('postCreateRepo', tag=tag, repodir=self.outdir,
|
| |
+ repo_id=self.repo_id, arch=arch)
|
| |
+
|
| |
uploadpath = self.getUploadDir()
|
| |
files = []
|
| |
for f in os.listdir(self.datadir):
|
| |
@@ -5708,13 +5712,13 @@
|
| |
oldpkgs = []
|
| |
if opts.get('delta'):
|
| |
# should be a list of repo ids to delta against
|
| |
- for repo_id in opts['delta']:
|
| |
- oldrepo = self.session.repoInfo(repo_id, strict=True)
|
| |
+ for delta_repo_id in opts['delta']:
|
| |
+ oldrepo = self.session.repoInfo(delta_repo_id, strict=True)
|
| |
if not oldrepo['dist']:
|
| |
raise koji.GenericError("Base repo for deltas must also "
|
| |
"be a dist repo")
|
| |
# regular repos don't actually have rpms, just pkglist
|
| |
- path = koji.pathinfo.distrepo(repo_id, oldrepo['tag_name'])
|
| |
+ path = koji.pathinfo.distrepo(delta_repo_id, oldrepo['tag_name'])
|
| |
if not os.path.exists(path):
|
| |
raise koji.GenericError('Base drpm repo missing: %s' % path)
|
| |
# note: since we're using the top level dir, this will handle
|
| |
@@ -5758,6 +5762,9 @@
|
| |
fp.write("This repo is empty because its tag has no content "
|
| |
"for this arch\n")
|
| |
|
| |
+ self.run_callbacks('postCreateDistRepo', tag=tag, repodir=self.repodir,
|
| |
+ repo_id=repo_id, arch=arch, keys=keys, opts=opts)
|
| |
+
|
| |
# upload repo files
|
| |
self.upload_repo()
|
| |
self.upload_repo_manifest()
|
| |
Fixes: https://pagure.io/koji/issue/2636