Module mirror

Source
Expand description

The mirror module contains all logic to download data from an Arch Linux package mirror. This includes the database files or packages.

Structsยง

MirrorDownloader
The entry point for downloading any data from package mirrors.

Functionsยง

extract_pkg_files ๐Ÿ”’
Use tar to extract relevant package metadata and script files from packages files.
get_tar_file_list ๐Ÿ”’
Get the list of all files inside a given compressed tarball.
remove_tarball_suffix
A small helper function that removes the .pkg.tar.* suffix of a tarball. This is necessary to get the actual package name from a packages full file name.