mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
Override build URL for Koji.
Import fc261daf and ce8e9d4b commits (mostly) from Fedpkg.
This commit is contained in:
parent
c7ea6590bb
commit
dda40dd5a5
1 changed files with 8 additions and 0 deletions
|
@ -141,6 +141,14 @@ class Commands(Commands):
|
|||
"--define '%s 1'" % self._disttag]
|
||||
self.log.debug("RPMDefines: %s" % self._rpmdefines)
|
||||
|
||||
def construct_build_url(self, *args, **kwargs):
|
||||
"""Override build URL for CentOS/Fedora Koji build
|
||||
|
||||
In CentOS/Fedora Koji, anonymous URL should have prefix "git+https://"
|
||||
"""
|
||||
url = super(Commands, self).construct_build_url(*args, **kwargs)
|
||||
return 'git+{0}'.format(url)
|
||||
|
||||
def load_target(self):
|
||||
""" This sets the target attribute (used for mock and koji) """
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue