mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Find all build.gradle files in the entire source tree
This commit is contained in:
parent
c47b1dc286
commit
8566250dd0
@ -1290,12 +1290,6 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path,
|
|||||||
else:
|
else:
|
||||||
root_dir = build_dir
|
root_dir = build_dir
|
||||||
|
|
||||||
if 'gradle' in build:
|
|
||||||
if '@' in build['gradle']:
|
|
||||||
gradle_dir = os.path.join(root_dir, build['gradle'].split('@')[1])
|
|
||||||
else:
|
|
||||||
gradle_dir = root_dir
|
|
||||||
|
|
||||||
# Get a working copy of the right revision...
|
# Get a working copy of the right revision...
|
||||||
print "Getting source for revision " + build['commit']
|
print "Getting source for revision " + build['commit']
|
||||||
vcs.gotorevision(build['commit'])
|
vcs.gotorevision(build['commit'])
|
||||||
@ -1385,7 +1379,7 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, sdk_path,
|
|||||||
if subprocess.call(['sed','-i','s/^key.store/#/',
|
if subprocess.call(['sed','-i','s/^key.store/#/',
|
||||||
propfile], cwd=root_dir) !=0:
|
propfile], cwd=root_dir) !=0:
|
||||||
raise BuildException("Failed to amend %s" % propfile)
|
raise BuildException("Failed to amend %s" % propfile)
|
||||||
for root, dirs, files in os.walk(gradle_dir):
|
for root, dirs, files in os.walk(build_dir):
|
||||||
for f in files:
|
for f in files:
|
||||||
if f == 'build.gradle':
|
if f == 'build.gradle':
|
||||||
clean_gradle_keys(os.path.join(root, f), verbose)
|
clean_gradle_keys(os.path.join(root, f), verbose)
|
||||||
|
Loading…
Reference in New Issue
Block a user