mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Added the ability to flag an unbuildable release
This commit is contained in:
parent
a83b66ce87
commit
84ba9b19be
3 changed files with 20 additions and 2 deletions
6
README
6
README
|
@ -120,6 +120,12 @@ The above specifies to build version 0.12, which has a version code of 3.
|
||||||
The third parameter specifies the tag, commit or revision number from
|
The third parameter specifies the tag, commit or revision number from
|
||||||
which to build it in the source repository.
|
which to build it in the source repository.
|
||||||
|
|
||||||
|
If the commit version starts with a !, that version is not built. Instead,
|
||||||
|
everything after the ! is used as a reason why it can't be built. The
|
||||||
|
purpose of this feature is to allow non-buildable releases (e.g. the source
|
||||||
|
is not published) to be flagged, so the scripts don't generate repeated
|
||||||
|
messages about them. (And also to record the information for review later).
|
||||||
|
|
||||||
In addition to the three, always required, parameters described above,
|
In addition to the three, always required, parameters described above,
|
||||||
further parameters can be added (in name=value format) to apply further
|
further parameters can be added (in name=value format) to apply further
|
||||||
configuration to the build. These are:
|
configuration to the build. These are:
|
||||||
|
|
7
build.py
7
build.py
|
@ -76,9 +76,12 @@ for app in apps:
|
||||||
dest_unsigned = dest + "_unsigned"
|
dest_unsigned = dest + "_unsigned"
|
||||||
|
|
||||||
if os.path.exists(dest):
|
if os.path.exists(dest):
|
||||||
print "Version " + thisbuild['version'] + " already exists"
|
print "..version " + thisbuild['version'] + " already exists"
|
||||||
|
elif thisbuild['commit'].startswith('!'):
|
||||||
|
print ("..skipping version " + thisbuild['version'] + " - " +
|
||||||
|
thisbuild['commit'][1:])
|
||||||
else:
|
else:
|
||||||
print "Building version " + thisbuild['version']
|
print "..building version " + thisbuild['version']
|
||||||
|
|
||||||
if not got_source:
|
if not got_source:
|
||||||
|
|
||||||
|
|
|
@ -337,6 +337,15 @@ for app in apps:
|
||||||
+ ") " + app['source'])
|
+ ") " + app['source'])
|
||||||
warnings += 1
|
warnings += 1
|
||||||
|
|
||||||
|
# If we don't have the market version, check if there is a build
|
||||||
|
# with a commit ID starting with '!' - this means we can't build it
|
||||||
|
# for some reason, and don't want hassling about it...
|
||||||
|
if not gotmarketver and app['marketvercode'] != '0':
|
||||||
|
for build in app['builds']:
|
||||||
|
if build['vercode'] == app['marketvercode']:
|
||||||
|
gotmarketver = True
|
||||||
|
|
||||||
|
# Output a message of harassment if we don't have the market version:
|
||||||
if not gotmarketver and app['marketvercode'] != '0':
|
if not gotmarketver and app['marketvercode'] != '0':
|
||||||
if app['usebuilt']:
|
if app['usebuilt']:
|
||||||
addr = app['source']
|
addr = app['source']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue