Correctly raise StopBuild in case of error when building flatpak.
This commit is contained in:
parent
c4a3da03c3
commit
4160673c3a
|
@ -208,12 +208,9 @@ class FlatpakBuilder:
|
||||||
run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv)
|
run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv)
|
||||||
context._finalise()
|
context._finalise()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
try:
|
with open(log, 'r') as f:
|
||||||
with open(log, 'r') as f:
|
print(f.read())
|
||||||
print(f.read())
|
raise StopBuild()
|
||||||
raise StopBuild()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def bundle(self):
|
def bundle(self):
|
||||||
log = pj(self.platform.buildEnv.log_dir, 'cmd_bundle_flatpak.log')
|
log = pj(self.platform.buildEnv.log_dir, 'cmd_bundle_flatpak.log')
|
||||||
|
@ -224,12 +221,9 @@ class FlatpakBuilder:
|
||||||
run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv)
|
run_command(command, self.platform.buildEnv.build_dir, context, self.platform.buildEnv)
|
||||||
context._finalise()
|
context._finalise()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
try:
|
with open(log, 'r') as f:
|
||||||
with open(log, 'r') as f:
|
print(f.read())
|
||||||
print(f.read())
|
raise StopBuild()
|
||||||
raise StopBuild()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def _get_packages(self):
|
def _get_packages(self):
|
||||||
|
|
Loading…
Reference in New Issue