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

Don't report Debian updates if they already have been imported in Apertis


using the debian-security repository before being available
in the main Debian repository through a point release.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 17ca61a5
No related branches found
No related tags found
1 merge request!110Don't report Debian updates if they already have been imported in Apertis
Pipeline #377077 failed
......@@ -97,6 +97,20 @@ def compute_updates(data):
f"Skip update from {branch.version} to {branch.name}/{upstream['version']}, superseded by {base.name}/{base.version}"
)
continue
# Don't report Debian updates if they already have been imported in Apertis
# using the debian-security repository before being available
# in the main Debian repository through a point release.
branch_sec = branch.name + "-security"
base_sec = git.branches.get(branch_sec)
if base_sec:
base_sec = types.SimpleNamespace(**base_sec)
if upstream["version"] <= debian.debian_support.Version(
base_sec.version
):
logging.debug(
f"Skip update from {branch.version} to {branch.name}/{upstream['version']}, already imported in {base_sec.name}/{base_sec.version}"
)
continue
updatable(package, base, branch, upstream)
return ret
......
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