]> git.ipfire.org Git - pakfire.git/commit
repositories: Refactor how we are reading metadata
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 20:34:58 +0000 (20:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 20:34:58 +0000 (20:34 +0000)
commit69e81a094b90ba5fbc359fc0625709d24c730d94
tree3cf27eb3b6215835fbd654ff258646495f2f0762
parentc8845af461ff240d8b0ec2ba00965f6bfae49e12
repositories: Refactor how we are reading metadata

This is a large rewrite of how we are discovering and reading any
repository metadata.

It first of all makes the code a little bit more straight forward by
breaking steps into their own function.

Those functions will now do "the right thing" depending whether we are
dealing with a local or remote repository and will try to read
repository metdata for local repositories, too.

If that fails, we will of course fall back and scan.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c