Package archive parser #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For the mirroring system, we need to read out a repository's package archive to know which packages to download. This comes down to reading each
descfile in the tarball and outputting the package name and version, and the filename which can be used to download the package. Each of these files can then be queued for download if needed.The implementation for this would basically be a small wrapper around libarchive's entries where we parse each
descfile and output the three values. The parser could therefore be anIteratorreturningOption<Result<(String, String, String)>>.