build.py: include geo tools media

This commit is contained in:
rolux 2012-06-18 12:10:33 +02:00
parent e398e758c5
commit 1089080b0a

View file

@ -226,7 +226,15 @@ def filter_source(tarinfo):
name = tarinfo.name
if re.search('^[._]', name) or re.search('/[._]', name) or re.search('~$', name):
return None
if re.search('^OxJS/(downloads|tools/geo/png/icons)', name):
if re.search('^OxJS/downloads', name):
return None
if name == 'OxJS/tools/geo/png/icons.png':
return None
if re.search('^OxJS/tools/geo/png/icons/', name) and (
not re.search('4096', name) or not os.path.exists(
name.replace('OxJS/', '../../').replace('icons/4096', 'flags')
)
):
return None
return tarinfo