# we return the list of files generated, so we need to know the architecture
arch = getArchitecture(config)
files = []
- # source format file
+ # create folders
+ if not os.path.exists('debian'): os.mkdir('debian')
if not os.path.exists('debian/source'): os.mkdir('debian/source')
+ if not os.path.exists(debDir): os.mkdir(debDir)
+ # source format file
with open('debian/source/format', 'w') as f:
print >>f, "3.0 (native)"
# compat file
def buildDebianPackage(config):
commands = ['dpkg-checkbuilddeps', 'debian/rules clean', 'debian/rules build', 'fakeroot debian/rules binary', 'debian/rules clean']
- command = ['bash', '-c', ' && '.join(commands)]
+ command = ['nice', 'bash', '-c', ' && '.join(commands)]
subprocess.check_call(commandInBuildEnv(config, command))
# all at once