Package archive parser #6

Open
opened 2024-07-01 22:11:41 +02:00 by Jef Roosens · 0 comments

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 an Iterator returning Option<Result<(String, String, String)>>.

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 an `Iterator` returning `Option<Result<(String, String, String)>>`.
Jef Roosens added this to the 0.2.0 milestone 2024-07-01 22:11:41 +02:00
Jef Roosens added the
enhancement
label 2024-07-01 22:11:41 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Chewing_Bever/rieter#6
There is no content yet.