From 9ab499b95d3f0aadaa932f834a34f41f0b7ecfbe Mon Sep 17 00:00:00 2001 From: clime Date: May 27 2016 10:35:43 +0000 Subject: [python-copr] added missing source_type specification for upload & url builds --- diff --git a/python/copr/client/client.py b/python/copr/client/client.py index 5fabc2d..d29a496 100644 --- a/python/copr/client/client.py +++ b/python/copr/client/client.py @@ -345,11 +345,13 @@ class CoprClient(UnicodeMixin): if urlparse(pkgs[0]).scheme != "": api_endpoint = "new_build" data["pkgs"] = " ".join(pkgs) + data["source_type"] = SOURCE_TYPE_SRPM_LINK else: try: api_endpoint = "new_build_upload" f = open(pkgs[0], "rb") data["pkgs"] = (os.path.basename(f.name), f, "application/x-rpm") + data["source_type"] = SOURCE_TYPE_SRPM_UPLOAD except IOError as e: raise CoprRequestException(e)