Skip to content
Snippets Groups Projects

apertis-pkg-merge-*: Make the local suffix customizable

Merged Emanuele Aina requested to merge wip/em/custom-local-suffix into apertis/v2022dev1
Files
3
@@ -94,6 +94,7 @@ def main():
parser.add_argument('--package', dest='package', type=str, help='the package name (e.g. glib2.0)') # TODO: figure this out from the repo
parser.add_argument('--downstream', dest='downstream', type=str, help='the downstream branch (e.g. apertis/v2020dev0)')
parser.add_argument('--upstream', dest='upstream', type=str, required=True, help='the upstream branch (e.g. debian/buster)')
parser.add_argument('--local-version-suffix', dest="local_suffix", type=str, default="apertis", help='the local version suffix to be used in the new changelog entry')
args = parser.parse_args()
package_name = args.package
@@ -121,7 +122,7 @@ def main():
# we carry some changes in addition to changelog entries
# and metadata under debian/apertis, so someone should
# re-summarize the remaining changes
version = upstream_version.full_version + 'co1'
version = upstream_version.full_version + args.local_suffix + '1'
bump_version(
version,
['PLEASE SUMMARIZE remaining Apertis changes'],
@@ -129,7 +130,7 @@ def main():
)
else:
# no changes, but we add a suffix anyway
version = upstream_version.full_version + 'co0'
version = upstream_version.full_version + args.local_suffix + '0'
bump_version(
version,
[f'Sync from Debian {args.upstream}.'],
Loading