Skip to content

Commit

Permalink
Split download and build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
barthalion committed Jul 26, 2023
1 parent 90ef915 commit d76ab6e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion master/buildbot/flathub_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,17 @@ def run(self):
'--subject', util.Property('flathub_subject'),
'builddir', util.Interpolate('%(prop:flathub_manifest)s')]

rendered=yield self.build.properties.render(command)
download_command = command + ["--download-only"]
command = command + ["--disable-download"]

download_rendered = yield self.build.properties.render(download_command)
download_cmd = yield self.makeRemoteShellCommand(command=download_rendered)
yield self.runCommand(download_cmd)

if download_cmd.didFail():
defer.returnValue(cmd.results())

rendered = yield self.build.properties.render(command)
cmd = yield self.makeRemoteShellCommand(command=rendered)
yield self.runCommand(cmd)

Expand Down

0 comments on commit d76ab6e

Please sign in to comment.