chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1deec
)
Make sure that for per-version src tarballs, VCS dirs are really excluded.
author
Paul Sokolovsky
<pfalcon@users.sourceforge.net>
Fri, 24 Feb 2012 12:38:13 +0000
(14:38 +0200)
committer
Paul Sokolovsky
<pfalcon@users.sourceforge.net>
Fri, 24 Feb 2012 12:40:15 +0000
(14:40 +0200)
A full path is passed to the filter function, so old code didn't really work.
build.py
patch
|
blob
|
history
diff --git
a/build.py
b/build.py
index f851da1ca4f39000d7c141339bb9c41867c2ede7..9d6abd8f3908384c563cb45d454cc8759c044ce3 100755
(executable)
--- a/
build.py
+++ b/
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()