Skip to content
Snippets Groups Projects
Commit 31cd1b48 authored by Ritesh Raj Sarraf's avatar Ritesh Raj Sarraf Committed by Emanuele Aina
Browse files

apertis-pkg-merge-*: Use a default suffix consistent with the project name


Switch from coX to apertisX as the default Debian changelog suffix.

Signed-off-by: default avatarRitesh Raj Sarraf <ritesh.sarraf@collabora.com>
Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 2dc5c701
No related branches found
No related tags found
2 merge requests!175apertis-pkg-merge-*: Make the local suffix customizable,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #213039 failed
......@@ -138,12 +138,12 @@ test-package-source-builder:
- test "$(pristine-lfs list | wc -l)" = 2
- cd ..
- git clone https://gitlab.apertis.org/infrastructure/test-data/fixture-dash-unmodified
- ": Verify we correctly detect when there are no local changes and use the co0 suffix"
- ": Verify we correctly detect when there are no local changes and use the apertis0 suffix"
- cd fixture-dash-unmodified
- apertis-pkg-merge-updates --package dash --upstream debian/buster --downstream apertis/v2020dev0
- git log --graph --oneline --decorate
- git diff debian/buster..
- test "$(dpkg-parsechangelog -SVersion)" = 0.5.10.2-5co0
- test "$(dpkg-parsechangelog -SVersion)" = 0.5.10.2-5apertis0
- test "$(dpkg-parsechangelog -SDistribution)" = apertis
- cd ..
- rm -rf fixture-dash-unmodified
......@@ -162,7 +162,7 @@ test-package-source-builder:
- apertis-pkg-merge-updates --package dash --upstream debian/buster --downstream apertis/v2020dev0
- git log --graph --oneline --decorate
- git diff debian/buster..
- test "$(dpkg-parsechangelog -SVersion)" = 0.5.10.2-5co1
- test "$(dpkg-parsechangelog -SVersion)" = 0.5.10.2-5apertis1
- test "$(dpkg-parsechangelog -SDistribution)" = UNRELEASED
- cd ..
......
......@@ -94,7 +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="co", help='the local version suffix to be used in the new changelog entry')
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
......
......@@ -67,7 +67,7 @@ def main():
required=True, help='the upstream branch (e.g. debian/buster)')
parser.add_argument('--downstreams', dest='downstreams', type=str,
required=True, help='downstream branches, colon seperate (e.g. apertis/v2020dev0:apertis/v2019)')
parser.add_argument('--local-version-suffix', dest="local_suffix", type=str, default="co", help='the local version suffix to be used in new changelog entries')
parser.add_argument('--local-version-suffix', dest="local_suffix", type=str, default="apertis", help='the local version suffix to be used in new changelog entries')
parser.add_argument('project_url', type=str, help='git project url to push updates to')
args = parser.parse_args()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment