include '.gz$' files, unless in '^downloads/'

This commit is contained in:
rolux 2012-06-17 13:10:18 +02:00
parent 6fe64796fb
commit a8ba135bf3

View file

@ -227,7 +227,7 @@ def filter_source(tarinfo):
# FIXME: demos and tests should be removed anyway
if re.search('^OxJS/(demos|downloads/|tests|tools/geo/png/icons/)', tarinfo.name):
return None
if re.search('/[._]', tarinfo.name) or re.search('(\.gz|[~])$', tarinfo.name):
if re.search('/[._]', tarinfo.name) or re.search('~$', tarinfo.name):
return None
return tarinfo