mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 13:02:50 +00:00
Add an option for providing tag and revision to avoid using bzr. Useful on Appveyor where bzr does not work.
bzr-revno: 38
This commit is contained in:
commit
1872fd58f6
@ -160,6 +160,8 @@ class Builder(object):
|
||||
parser.add_argument('--skip-translations', action='store_true', default=False,
|
||||
help='Do NOT update the language translation files')
|
||||
parser.add_argument('--debug', action='store_true', default=False, help='Create a debug build')
|
||||
parser.add_argument('--tag-override', metavar='<tag>-bzr<revision>', default=None,
|
||||
help='Override tag and revision, should be in format <tag>-bzr<revision>')
|
||||
self.add_extra_args(parser)
|
||||
self.args = parser.parse_args()
|
||||
|
||||
@ -297,6 +299,9 @@ class Builder(object):
|
||||
"""
|
||||
self._print('Writing version file...')
|
||||
if not self.args.release:
|
||||
if self.args.tag_override:
|
||||
self.version = self.args.tag_override
|
||||
else:
|
||||
# This is a development build, get the tag and revision
|
||||
output = self._bzr('tags', self.branch_path, err_msg='Error running bzr tags')
|
||||
lines = output.splitlines()
|
||||
|
Loading…
Reference in New Issue
Block a user