Package archive parser #6
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. 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
desc
file 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
desc
file and output the three values. The parser could therefore be anIterator
returningOption<Result<(String, String, String)>>
.