Fix KojiGitReleaser method arguments.

This commit is contained in:
Devan Goodwin 2013-07-09 10:22:24 -03:00
parent bb9d9eaf53
commit cf3258932f
2 changed files with 12 additions and 2 deletions

View file

@ -26,6 +26,11 @@ rsync = fedorapeople.org:/srv/repos/dgoodwin/tito/epel-6/x86_64/ fedorapeople.or
releaser = tito.release.KojiReleaser
autobuild_tags = tag1 tag2
[test-koji-git]
releaser = tito.release.KojiGitReleaser
autobuild_tags = tag1 tag2
git_url = git://example.com
[fedora]
releaser = tito.release.FedoraGitReleaser
branches = master f17 f18 f19 el5 el6

View file

@ -1085,8 +1085,13 @@ class KojiGitReleaser(KojiReleaser):
self.skip_srpm = True
KojiReleaser._koji_release(self)
def _submit_build(self, executable, koji_opts, tag):
""" Submit build to koji. """
def _submit_build(self, executable, koji_opts, tag, srpm_location):
"""
Submit build to koji using the git URL from config. We will ignore
srpm_location here.
NOTE: overrides KojiReleaser._submit_build.
"""
cmd = "%s %s %s %s/#%s" % \
(executable, koji_opts, tag,
self.releaser_config.get(self.target, 'git_url'),