From baae70c00175948b848c9d0e1a17e6ab89f1f0b9 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 19 Dec 2010 21:56:10 +0200 Subject: [PATCH] Support --noconf --- ubuntutools/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubuntutools/config.py b/ubuntutools/config.py index b6223de..1fb62bb 100644 --- a/ubuntutools/config.py +++ b/ubuntutools/config.py @@ -31,6 +31,8 @@ def get_devscripts_config(): dictionary """ config = {} + if len(sys.argv) > 1 and sys.argv[1] in ('--no-conf', '--noconf'): + return config var_re = re.compile(r'^\s*([A-Z_]+?)=(.+)$') for fn in ('/etc/devscripts.conf', '~/.devscripts'): f = open(os.path.expanduser(fn), 'r')