chiark / gitweb /
build: don't remove wrapper dir gradle/
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 8 Mar 2016 23:50:14 +0000 (23:50 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 8 Mar 2016 23:50:14 +0000 (23:50 +0000)
The point of removing these was to make sure that gradlew wasn't used,
and that our gradle was used instead. Removing the scripts already
accomplishes this.

Removing gradle/ should be harmless, but some apps like I2P re-use this
directory to also hold other stuff that is actually needed. So be safer
and don't remove it at all.

fdroidserver/build.py

index 216de06f7e28480bff220f95b5681e293304b42d..ed131d67e5036c383419d7dc2f7ee796941b7ca1 100644 (file)
@@ -557,7 +557,7 @@ def build_local(app, build, vcs, build_dir, output_dir, srclib_dir, extlib_dir,
             # .gradle/ as binary files. To avoid overcomplicating the scanner,
             # manually delete them, just like `gradle clean` should have removed
             # the build/ dirs.
-            del_dirs(['build', '.gradle', 'gradle'])
+            del_dirs(['build', '.gradle'])
             del_files(['gradlew', 'gradlew.bat'])
 
         if 'pom.xml' in files: