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

packaging-updates-upstream-linux: clarify debug messages


Using "git" to define "kernel.org" is confusing here since
it could be salsa git, apertis git, etc.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent a95f56f3
No related branches found
No related tags found
1 merge request!232packaging-updates-upstream-linux: check if Apertis is ahead of Debian before relying on Debian packages
......@@ -119,7 +119,7 @@ def compute_linux_updates(data):
# git -c 'versionsort.suffix=-' ls-remote --exit-code --tags --refs --sort='version:refname' https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git v5.4*
# Add version and wildcard. For e.g. 5.4 to v5.4*
tag_pattern = f"v{downstream_release}*"
logging.debug(f"{branch}: Retrieving all git {tag_pattern} tags")
logging.debug(f"{branch}: Retrieving all kernel.org {tag_pattern} tags")
# fetch the available upstream versions
cmd = [
"git",
......@@ -142,11 +142,13 @@ def compute_linux_updates(data):
result = process.stdout.strip().decode()
tags = re.findall(r"refs/tags/v(.+)", result)
latest_tag = tags[-1]
logging.debug(f"{branch}: Latest git tag is {latest_tag}")
logging.debug(f"{branch}: Kernel.org latest tag is {latest_tag}")
# check if apertis linux version is less than the latest
# upstream linux version and update the dashboard
logging.debug(f"{branch}: Downstream has {version}, git has {latest_tag}")
logging.debug(
f"{branch}: Downstream has {version}, kernel.org has {latest_tag}"
)
downstream_version = debian.debian_support.Version(version)
if downstream_version < latest_tag:
mainline = {
......
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