mirror of
https://github.com/truenas/scale-build.git
synced 2025-12-27 06:29:20 +00:00
Add ability to debug packages when they fail
This commit is contained in:
@@ -166,6 +166,10 @@ class BuildPackageMixin:
|
||||
build_env = f'DEB_BUILD_OPTIONS={self.deoptions} ' if self.deoptions else ''
|
||||
return [f'{build_env} debuild {" ".join(self.deflags)}']
|
||||
|
||||
@property
|
||||
def debug_command(self):
|
||||
return f'chroot {self.dpkg_overlay} /bin/bash'
|
||||
|
||||
@property
|
||||
def deflags(self):
|
||||
return [f'-j{self.jobs if self.jobs else os.cpu_count()}', '-us', '-uc', '-b']
|
||||
|
||||
Reference in New Issue
Block a user