don't fail to waitAfterConfig if the build system adds no auto_configure rule
authorRalf Jung <post@ralfj.de>
Sun, 9 Sep 2012 18:57:32 +0000 (20:57 +0200)
committerRalf Jung <post@ralfj.de>
Sun, 9 Sep 2012 18:57:32 +0000 (20:57 +0200)
auto_debuild.py

index e28d34d0ac7edbaa66d668956071e072ad7a804f..0be45a3e5071b4b18229a87bfae1f3c52f90be9a 100755 (executable)
@@ -248,6 +248,7 @@ def createDebianFiles(config):
                        r.rules['installdocs'] = [safeCall('dh_installdocs', '--link-doc='+binaryName)] # make the doc folder of the dbg package a symlink
                # wait after configuration?
                if config.get('waitAfterConfig', False):
+                       if not 'auto_configure' in r.rules: r.rules['auto_configure'] = ['dh_auto_configure'] # make sure there is an override
                        r.rules['auto_configure'].append("@"+safeCall('read', '-p', 'Configuration done. Hit "Enter" to build the package. ', 'DUMMY_VAR')) # if we run in dash, we need to tell it which variable to use for the result...
                # dump it to a file
                r.write(f)