#1653 Koji1 patch
Closed: Fixed None Opened 14 years ago by mmcgrath.

Hot fix on koji1:/usr/share/koji-hub/kojihub.py

{{{
--- kojihub.py.orig 2009-09-01 15:28:30.000000000 +0000
+++ kojihub.py 2009-09-01 16:09:34.000000000 +0000
-5911,7 +5911,7 @@
repoInfo = staticmethod(repo_info)
getActiveRepos = staticmethod(get_active_repos)

  • def newRepo(self, tag, event=None, src=False, debuginfo=False):
  • def newRepo2(self, tag, event=None, src=False, debuginfo=False):
    """Create a newRepo task. returns task id"""
    if context.session.hasPerm('regen-repo'):
    pass
    -5927,6 +5927,13 @@
    args = koji.encode_args(tag, **opts)
    return make_task('newRepo', args, priority=15, channel='createrepo')

  • def newRepo(self, tag, event=None, src=False, debuginfo=False):

  • import hotshot
  • p = hotshot.Profile('/tmp/newRepo-%s.dmp' % time.time())
  • results = p.runcall(self.newRepo2, tag, event, src, debuginfo)
  • p.close()
  • return results
    +
    def repoExpire(self, repo_id):
    """mark repo expired"""
    context.session.assertPerm('repo')
    }}}

Login to comment on this ticket.

Metadata