Skip to content
Snippets Groups Projects
Unverified Commit 120ebae6 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

When run on -security or -updates, act on the main distro branch


Strip off the suffix since all branches related to the upstream
Debian release need to be taken into account when pulling updates.

Without this, when the script runs on e.g. buster-security branch,
it would completely ignore the existence of any other buster branches,
leading to incorrectly applied updates.

Apertis: T7681

Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 42f100b1
No related branches found
No related tags found
2 merge requests!168T7681: When run on -security or -updates, act on the main distro branch,!93WIP: documentation-builder: Rebase on Apertis instead of Debian Buster
Pipeline #194078 passed
......@@ -228,7 +228,10 @@ def main():
parser.add_argument('--mirror', dest='mirror', type=str, required=True, help='the upstream mirror (e.g. http://deb.debian.org/debian)')
args = parser.parse_args()
package_name = args.package
upstream_suite = args.upstream
# buster-security → buster,
# buster-updates → buster,
# buster → buster
upstream_suite = args.upstream.split('-')[0]
mirror = args.mirror
package_name = args.package or get_package_name()
......
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