add option to wait after configuration
authorRalf Jung <post@ralfj.de>
Thu, 2 Aug 2012 14:06:29 +0000 (16:06 +0200)
committerRalf Jung <post@ralfj.de>
Thu, 2 Aug 2012 14:06:29 +0000 (16:06 +0200)
auto_debuild.py

index 8ef290ba8f2e5b253475979d6852722ee98a9608..4f46da1996024a414591d10c221e6133c00ea972 100755 (executable)
@@ -182,6 +182,9 @@ def createDebianFiles(config):
                if dbgPackage:
                        r.rules['strip'] = [safeCall(['dh_strip', '--dbg-package='+binaryName+"-dbg"])] # put debug files in appropriate package
                        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):
+                       r.rules['auto_configure'].append(safeCall(['read', '-p', 'Configuration done. Hit "Enter" to build the package.']))
                # dump it to a file
                r.write(f)
        mode = os.stat('debian/rules').st_mode