mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03: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
1 changed files with 3 additions and 2 deletions
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,
|
tarball = tarfile.open(os.path.join(tmp_dir,
|
||||||
tarname + '.tar.gz'), "w:gz")
|
tarname + '.tar.gz'), "w:gz")
|
||||||
def tarexc(f):
|
def tarexc(f):
|
||||||
if f in ['.svn', '.git', '.hg', '.bzr']:
|
for vcs_dir in ['.svn', '.git', '.hg', '.bzr']:
|
||||||
return True
|
if f.endswith(vcs_dir):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
tarball.add(build_dir, tarname, exclude=tarexc)
|
tarball.add(build_dir, tarname, exclude=tarexc)
|
||||||
tarball.close()
|
tarball.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue