mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
Exclude .hg directory from scans, it can contain jars that were removed
This commit is contained in:
parent
2df8259408
commit
b4fc2f5c80
1 changed files with 16 additions and 14 deletions
|
@ -950,6 +950,8 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||||
for r,d,f in os.walk(build_dir):
|
for r,d,f in os.walk(build_dir):
|
||||||
for curfile in f:
|
for curfile in f:
|
||||||
|
|
||||||
|
if r.find('/.hg/') == -1:
|
||||||
|
|
||||||
# Path (relative) to the file...
|
# Path (relative) to the file...
|
||||||
fp = os.path.join(r, curfile)
|
fp = os.path.join(r, curfile)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue