Remove the niceness by default - that should be up to the caller
authorRalf Jung <post@ralfj.de>
Wed, 1 Aug 2012 10:57:21 +0000 (12:57 +0200)
committerRalf Jung <post@ralfj.de>
Wed, 1 Aug 2012 10:57:21 +0000 (12:57 +0200)
auto_debuild.py

index ab04dc0e9d752e24d5aa2f8e918e457e3f1fb515..8ef290ba8f2e5b253475979d6852722ee98a9608 100755 (executable)
@@ -191,7 +191,7 @@ def createDebianFiles(config):
 
 def buildDebianPackage(config):
        commands = ['dpkg-checkbuilddeps', 'debian/rules clean', 'debian/rules build', 'fakeroot debian/rules binary', 'debian/rules clean']
 
 def buildDebianPackage(config):
        commands = ['dpkg-checkbuilddeps', 'debian/rules clean', 'debian/rules build', 'fakeroot debian/rules binary', 'debian/rules clean']
-       command = ['nice', 'bash', '-c', ' && '.join(commands)]
+       command = ['bash', '-c', ' && '.join(commands)] # make it all one command, so we don't have to open and close the chroot too often
        subprocess.check_call(commandInBuildEnv(config, command))
        shutil.rmtree('debian') # it only contains what we just created
 
        subprocess.check_call(commandInBuildEnv(config, command))
        shutil.rmtree('debian') # it only contains what we just created