From 465ac0fd5031f3f88261b7c6dc723ae1d3abdfbd Mon Sep 17 00:00:00 2001 From: Giulia Naponiello Date: Jul 26 2018 07:59:39 +0000 Subject: Greenwave should consider that aliases exist Greenwave was checking if the url.netloc of the build['source'] found in the koji/brew build is in the configured DIST_GIT_BASE_URL. The problem is that the dist-git server can have an alias, and this check is raising an error blocking the decision. Removing the check for now... maybe in the future we can find a smarter way to check that. --- diff --git a/greenwave/resources.py b/greenwave/resources.py index 63eb5c3..e57129c 100644 --- a/greenwave/resources.py +++ b/greenwave/resources.py @@ -42,10 +42,6 @@ def retrieve_scm_from_koji(nvr): raise BadGateway('Unable to extract scm from koji. ' '%s doesn\'t begin with git://' % url) - if url.netloc not in current_app.config['DIST_GIT_BASE_URL']: - raise BadGateway('Unable to extract scm from koji. ' - '%s is an unrecognized scm domain.' % url) - rev = url.fragment namespace = url.path.split('/')[-2] return namespace, rev