#11 Override build URL for Koji.
Merged 6 months ago by bstinson. Opened 6 months ago by jamesantill.
centos/ jamesantill/centpkg anongiturl  into  develop

Remove explicit git+ from anon git url.
James Antill • 6 months ago  
Override build URL for Koji.
James Antill • 6 months ago  
file modified
+1 -1

@@ -5,7 +5,7 @@ 

  distgit_namespaced = True

  distgit_namespaces = rpms

  gitbaseurl = git+ssh://git@gitlab.com/redhat/centos-stream/%(repo)s.git

- anongiturl = git+https://gitlab.com/redhat/centos-stream/%(repo)s

+ anongiturl = https://gitlab.com/redhat/centos-stream/%(repo)s

  branchre = .+\d$|.+\d-.+|master$

  kojiprofile = stream

  build_client = stream

file modified
+8

@@ -141,6 +141,14 @@ 

                              "--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) """

  

Import fc261daf and ce8e9d4b commits (mostly) from Fedpkg.

1 new commit added

  • Remove explicit git+ from anon git url.
6 months ago

rebased onto dda40dd

6 months ago

Pull-Request has been merged by bstinson

6 months ago