From: Ralf Jung Date: Sun, 9 Sep 2012 18:57:32 +0000 (+0200) Subject: don't fail to waitAfterConfig if the build system adds no auto_configure rule X-Git-Url: https://git.ralfj.de/auto-debuild.git/commitdiff_plain/260e43dbae9bcd168245d2c960b68b3df0676eaa?ds=sidebyside;hp=06fb578ee299d667a89fa006798d1ce546792ac5 don't fail to waitAfterConfig if the build system adds no auto_configure rule --- diff --git a/auto_debuild.py b/auto_debuild.py index e28d34d..0be45a3 100755 --- a/auto_debuild.py +++ b/auto_debuild.py @@ -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)