Skip to content

deb: match a version given without its epoch #144

Open

Description

@simonchrz

Follow-up to #140 (#97).

The deb client keeps a version's epoch, as in 1:9.2p1-2+deb12u3, since that is how the archive lists it. A PURL often leaves the epoch out (openssh-client@9.2p1-2+deb12u3), or carries it as trivy's epoch=1 qualifier. Neither matches the stored version, so the version is not found.

The lookup should fall back to the versions whose number without the epoch is the one asked for, and read epoch= when it is given. If two epochs share that number, it should fail rather than pick one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions