#241 Try both Koji build 'source' and Koji task 'source' in this order.
Merged by jkaluza. Opened by jkaluza.
jkaluza/freshmaker brew-build-sources  into  master

Download 241.patch

We used to examine only Koji task source to get the SCM namespace, repo, branch and commit hash. But the Koji task can contain branch name in the SCM url. That is not acceptable for Freshmaker, because we need particular commit hash.

This PR therefore prefers koji_build["source"] as a source of SCM data and only fallbacks to Koji task source if koji_build["source"] is not available. If Koji task is used, it checks for slash in commit hash, which detects wrong commit hash in "origin/branch" form.

:thumbsup:

:+1: here too.

Commit 10ed9edb fixes this pull-request

Pull-Request has been merged by jkaluza

Pull-Request has been merged by jkaluza

Metadata