summaryrefslogtreecommitdiffhomepage
path: root/gbp/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/config.py')
-rw-r--r--gbp/config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 8cfac0d0..dbe56907 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -364,9 +364,10 @@ class GbpOptionParser(OptionParser):
return
parser.read(filename)
- def _warn_old_config(self, oldcmd, cmd):
- gbp.log.warn("Old style config section [%s] found "
- "please rename to [%s]" % (oldcmd, cmd))
+ def _warn_old_config_section(self, oldcmd, cmd):
+ if not os.getenv("GBP_DISABLE_SECTION_DEPRECTATION"):
+ gbp.log.warn("Old style config section [%s] found "
+ "please rename to [%s]" % (oldcmd, cmd))
def parse_config_files(self):
"""