1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 18:50:11 +02:00

Merge commit 'refs/merge-requests/75' of git://gitorious.org/f-droid/fdroidserver into merge-requests/75

This commit is contained in:
Ciaran Gultnieks 2012-02-25 07:44:20 +00:00
commit fb1358a163

View File

@ -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()