mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Merge commit 'refs/merge-requests/75' of git://gitorious.org/f-droid/fdroidserver into merge-requests/75
This commit is contained in:
commit
fb1358a163
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()
|
||||
|
Loading…
Reference in New Issue
Block a user