Commit 6d3814ef authored by Kirill Smelkov's avatar Kirill Smelkov

Add more isconf patterns

Hit complaints about those files being non-configuration on ERP5 SR.
parent f67f71ed
......@@ -224,13 +224,17 @@ def isconf(url):
if url.endswith('.conf.in') or \
url.endswith('.cfg') or \
url.endswith('.cfg.in') or \
url.endswith('.cnf.in') or \
url.endswith('.cfg.jinja2.in') or \
url.endswith('.jinja2.cfg') or \
url.endswith('.jinja2.library') or \
url.endswith('.asn') or \
url.endswith('/ltelogs.jinja2.sh') or \
'/promise/' in url or \
url.endswith('/templates/wrapper.in') or \
url.endswith('/logrotate_entry.in') :
url.endswith('/logrotate_entry.in') or \
url.endswith('/matplotlibrc.in') or \
url.endswith('/goenv.sh.in') :
return True
return False
......
......@@ -37,12 +37,16 @@ def test_namever(url, nameok, verok):
'xxx.conf.in',
'xxx.cfg',
'xxx.cfg.in',
'xxx.cnf.in',
'xxx.cfg.jinja2.in',
'xxx.jinja2.cfg',
'xxx.jinja2.library',
'xxx.asn',
'xxx/ltelogs.jinja2.sh',
'xxx/templates/wrapper.in',
'xxx/logrotate_entry.in',
'xxx/matplotlibrc.in',
'xxx/goenv.sh.in',
'xxx/promise/yyy',
])
def test_isconf(url):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment