Add ability to debug packages when they fail

This commit is contained in:
Waqar Ahmed
2021-04-21 01:09:13 +05:00
committed by Waqar Ahmed
parent 0142bbe770
commit 0cf3069c8b
5 changed files with 46 additions and 6 deletions

View File

@@ -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']