mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-02 10:20:31 +08:00
Allow git repositories to be http(s)://
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user