Skip to content
Snippets Groups Projects
Commit e94cccad authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

Make fetching of backports and proposed-updates repositories optional


The Apertis pipeline imports backport and/or proposed-updates versions
by default, this is not needed and leads to miss some security updates.
Because, importing versions from backports and proposed-updates is not
part of our standard workflow, this should only be optional to avoid
confusing the pipeline.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 7e85bff0
No related branches found
No related tags found
2 merge requests!68Backport v2024 <- v2025dev1: apertis-pkg-pull-updates: make backport repo optional to avoid confusion,!67Make fetching of backports and proposed-updates repositories optional
......@@ -253,6 +253,8 @@ 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('--upstream', dest='upstream', type=str, required=True, help='the upstream suite (e.g. buster)')
parser.add_argument('--mirror', dest='mirror', type=str, required=True, help='the upstream mirror (e.g. http://deb.debian.org/debian)')
parser.add_argument('--backports', action='store_true', help='check backports repository')
parser.add_argument('--proposed-updates', action='store_true', help='check proposed-updates repository')
args = parser.parse_args()
package_name = args.package
# buster-security → buster,
......@@ -264,7 +266,12 @@ def main():
package_name = args.package or get_package_name()
print('source package', package_name)
prepare_git_repo(upstream_suite)
for suite in [f'{upstream_suite}-security', f'{upstream_suite}-backports', f'{upstream_suite}-proposed-updates', upstream_suite]:
list_suites = [f'{upstream_suite}-security', upstream_suite]
if args.backports:
list_suites.append(f'{upstream_suite}-backports')
if args.proposed_updates:
list_suites.append(f'{upstream_suite}-proposed-updates')
for suite in list_suites:
local_version_branch, local_version = get_newest_branch_version(upstream_suite)
print('local version:', local_version)
remote_version = should_update(suite, package_name, local_version, upstream_suite==suite)
......
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