chiark / gitweb /
build: fix build/ and .gradle/ removal after cleaning
authorrelan <email@hidden>
Sun, 1 Oct 2017 06:57:32 +0000 (09:57 +0300)
committerrelan <email@hidden>
Sun, 1 Oct 2017 07:11:37 +0000 (10:11 +0300)
commitaad4bd89d8efd8c495ec73f117371490fd11f7ee
treed2642e2b43cc6a8341a04313c0e8c4757afe0bcc
parentd44d48285b186f277568c5c05d2968131ede8684
build: fix build/ and .gradle/ removal after cleaning

An app may not have a top-level build.gradle file, while Gradle still
creates top-level .gradle/ directory. When build.gradle is absent,
fdroidserver will not remove .gradle/, scanner will find binaries in it
and fail the whole build.

Fix this by also checking for settings.gradle file (should always exist
in the top-level directory) in addition to build.gradle.
fdroidserver/build.py