aportupgrade: add support for specifying git ref (MR 1964)

This adds support for specifying an arbitrary git ref (e.g. commits,
tags, branches) to upgrade to. This can be useful if a specific commit
needs to be packaged instead of the latest available. Alternatively you
can also specify a branch to be used if the default branch is 'stable'
but 'develop' should be packaged.

This also removes old code to use the 'bionic' branch for UBports Lomiri
(formerly Unity 8) packages.
This commit is contained in:
Luca Weiss 2020-07-28 17:18:22 +02:00 committed by Alexey Min
parent efd64f7714
commit 93f13277b9
No known key found for this signature in database
GPG key ID: EBF5ECFFFEE34DED
2 changed files with 22 additions and 27 deletions

View file

@ -189,6 +189,7 @@ def arguments_aportupgrade(subparser):
ret = subparser.add_parser("aportupgrade")
ret.add_argument("--dry", action="store_true", help="instead of modifying APKBUILDs,"
" print the changes that would be made")
ret.add_argument("--ref", help="git ref (tag, commit, etc) to use")
# Mutually exclusive: "--all" or package names
mode = ret.add_mutually_exclusive_group(required=True)