mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Make sure that for per-version src tarballs, VCS dirs are really excluded.
A full path is passed to the filter function, so old code didn't really work.
This commit is contained in:
parent
ce1deec8dd
commit
a348106f03
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,
|
||||
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…
Add table
Add a link
Reference in a new issue