mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-24 23:40:18 -05:00
Merge commit 'refs/merge-requests/75' of git://gitorious.org/f-droid/fdroidserver into merge-requests/75
This commit is contained in:
5
build.py
5
build.py
@@ -139,8 +139,9 @@ def build_local(app, thisbuild, build_dir, output_dir):
|
||||
tarball = tarfile.open(os.path.join(tmp_dir,
|
||||
tarname + '.tar.gz'), "w:gz")
|
||||
def tarexc(f):
|
||||
if f in ['.svn', '.git', '.hg', '.bzr']:
|
||||
return True
|
||||
for vcs_dir in ['.svn', '.git', '.hg', '.bzr']:
|
||||
if f.endswith(vcs_dir):
|
||||
return True
|
||||
return False
|
||||
tarball.add(build_dir, tarname, exclude=tarexc)
|
||||
tarball.close()
|
||||
|
||||
Reference in New Issue
Block a user