summaryrefslogtreecommitdiff
path: root/arch-proxy.py
AgeCommit message (Collapse)AuthorFilesLines
2022-12-28arch-proxy.py: ignore empty files in cacheHEADmasterPeter Wu1-0/+3
2022-12-28arch-proxy.py: accept upstream responses without Content-Length headerPeter Wu1-3/+11
This can occur while manually querying directory indexes.
2019-10-20arch-proxy.py: support zstd compressed packagesPeter Wu1-2/+4
"The imminent release of pacman 5.2 brings build tools with support for compressing packages with zstd. [..] If you use custom scripts make sure these do not rely on hardcoded file extensions. The zstd package file extension will be .pkg.tar.zst." https://www.archlinux.org/news/required-update-to-recent-libarchive/
2018-05-31arch-proxy.py: drop leading slashPeter Wu1-3/+3
The path already starts with a slash, do not concatenate it with another slash from the mirror URL.
2018-05-08arch-proxy.py: support mirrors and Arch Linux Archive (ALA)Peter Wu1-19/+98
For testing older packages while reusing a local package cache. Fix miscellaneous issues like printing stack traces when -Syu while the cache is up to date (peer would close connection).
2017-03-04arch-proxy.py: support resumed downloadsPeter Wu1-12/+72
Quick hack to support one specific range request type: resume downloading at some offset until the end. The full file is still downloaded from upstream as needed.
2017-03-04arch-proxy.py: support readonly cachePeter Wu1-13/+25
2017-02-24arch-proxy.py: quick proxy cache for Arch Linux packagesPeter Wu1-0/+161
With a freshly bootstrapped VM (using https://github.com/Lekensteyn/archdir), it became tiresome (and wasteful) to download the same packages when my local nginx cache was not available. This script serves as a simple proxy that tries to cache downloaded packages in the current working directory.