mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Made 'rm' build option work if file doesn't exist
The latest platform tools delete build.properties, the old ones didn't. This allows several builds to work either way.
This commit is contained in:
parent
2c107daaaf
commit
17cd20fabf
1 changed files with 3 additions and 1 deletions
|
@ -633,7 +633,9 @@ def prepare_source(vcs, app, build, build_dir, sdk_path, ndk_path, javacc_path,
|
|||
|
||||
# Delete unwanted file...
|
||||
if build.has_key('rm'):
|
||||
os.remove(os.path.join(build_dir, build['rm']))
|
||||
dest = os.path.join(build_dir, build['rm'])
|
||||
if os.path.exists(dest):
|
||||
os.remove(dest)
|
||||
|
||||
# Fix apostrophes translation files if necessary...
|
||||
if build.get('fixapos', 'no') == 'yes':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue