Allow git repositories to be http(s)://

This commit is contained in:
Jakub Kadlčík
2017-05-01 23:18:13 +02:00
parent 5bdc87b8bb
commit fd989ea233
2 changed files with 2 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ class CoprModuleBuilder(GenericBuilder):
# remove _build_lock locking.
with CoprModuleBuilder._build_lock:
# Git sources are treated specially.
if source.startswith("git://"):
if source.startswith(("git://", "http://", "https://")):
return build_from_scm(artifact_name, source, self.config, self.build_srpm)
else:
return self.build_srpm(artifact_name, source)

View File

@@ -403,7 +403,7 @@ mdpolicy=group:primary
build_id = int(MockModuleBuilder._build_id)
# Git sources are treated specially.
if source.startswith("git://"):
if source.startswith(("git://", "http://", "https://")):
# Open the srpm-stdout and srpm-stderr logs and build from SCM.
srpm_stdout_fn = os.path.join(self.resultsdir,
artifact_name + "-srpm-stdout.log")