Exclude pyj-cached files whensyncing to buildbots

This commit is contained in:
Kovid Goyal 2016-06-22 10:36:45 +05:30
parent 956b449091
commit 4c5a77361a

View File

@ -16,7 +16,7 @@ BASE_RSYNC = ['rsync', '-av', '--delete', '--force']
EXCLUDES = [] EXCLUDES = []
for x in [ for x in [
'/src/calibre/plugins', '/manual', '/translations', '/build', '/dist', '/imgsrc', '/format_docs' '/src/calibre/plugins', '/manual', '/translations', '/build', '/dist', '/imgsrc', '/format_docs'
'.bzr', '.git', '.build', '.svn', '*.pyc', '*.pyo', '*.swp', '*.swo',]: '.bzr', '.git', '.build', '.svn', '*.pyc', '*.pyo', '*.swp', '*.swo', '*.pyj-cached']:
EXCLUDES.extend(['--exclude', ('/calibre' + x) if x.startswith('/') else x]) EXCLUDES.extend(['--exclude', ('/calibre' + x) if x.startswith('/') else x])
SAFE_EXCLUDES = ['"%s"'%x if '*' in x else x for x in EXCLUDES] SAFE_EXCLUDES = ['"%s"'%x if '*' in x else x for x in EXCLUDES]