Skip to content

Conversation

@randomnoise
Copy link
Contributor

When Ubuntu packages are updated because of security issues, it looks like their artifacts are published on both -updates and -security repositories. (i.e. libssh)

Currently, to mark a package as a Security update, only the first repo's name is checked (and it is usually the -updates repo), so the package is not marked as a security update.

If there are multiple repositories as origin for a package, this change loops all repos and not just the first one.


For some security packages, package.candidate.origins looks like this:

[<Origin component:'main' archive:'noble-updates' origin:'Ubuntu' label:'Ubuntu' site:'archive.ubuntu.com' isTrusted:True>,
 <Origin component:'main' archive:'noble-security' origin:'Ubuntu' label:'Ubuntu' site:'security.ubuntu.com' isTrusted:True>]

Fixes #952

@clefebvre clefebvre merged commit d951cfe into linuxmint:master Jul 28, 2025
@randomnoise randomnoise deleted the check-multiple-origins branch July 30, 2025 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some security updates don't use 'security update' icon

2 participants