Skip to content

Commit

Permalink
client: check_build to accept git_url
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyw committed Jun 21, 2024
1 parent bd9b0ec commit 9a4c9f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osh/client/commands/cmd_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def check_build(self, args, kwargs, prefix=""):
config = kwargs.get(prefix + "config")
nvr = kwargs.get(prefix + "nvr")
srpm = kwargs.get(prefix + "srpm")
dist_git_url = kwargs.get(prefix + "git_url")
tarball_build_script = kwargs.get(prefix + "tarball_build_script")

if not config:
Expand All @@ -81,6 +82,8 @@ def check_build(self, args, kwargs, prefix=""):
if result is not None:
self.parser.error(result)
options[prefix + "brew_build"] = nvr
elif dist_git_url is not None:
options[prefix + "dist_git_url"] = dist_git_url
else:
if not os.path.exists(srpm):
self.parser.error(f"file does not exist: {srpm}")
Expand Down

0 comments on commit 9a4c9f6

Please sign in to comment.