Skip to content

Verify repodata integrity #1591

@mattiaverga

Description

@mattiaverga

Is there a way to verify the sanity of repodata for a given repository without running dnf and see if it fails?
Bodhi (the fedora package delivery system) uses a dirty hack to verify the repodata for repositories it composes:
https://github.com/fedora-infra/bodhi/blob/481df02300f94ca72ad7ce2ce32d543211ca823d/bodhi-server/bodhi/server/util.py#L272-L390

I'd like to avoid running dnf commands in a subprocess and verify the repodata within Python. Does libdnf has an appropriate method?

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