nroi / flexo

a central pacman cache
MIT License
172 stars 10 forks source link

ARM cache issues #95

Closed beckend closed 1 year ago

beckend commented 1 year ago

Using docker with env:

FLEXO_NUM_VERSIONS_RETAIN='1'
FLEXO_LOW_SPEED_LIMIT='1'
FLEXO_LOW_SPEED_TIME_SECS='99999999'
FLEXO_LISTEN_IP_ADDRESS='0.0.0.0'
FLEXO_MIRRORS_AUTO_ALLOWED_COUNTRIES='SE,DK,NO,DE,NL'
FLEXO_CUSTOM_REPO='arm_dk_1@dk.mirror.archlinuxarm.org arm_de_1@de.mirror.archlinuxarm.org arm_de_3@de3.mirror.archlinuxarm.org arm_de_4@de4.mirror.archlinuxarm.org'

Not all files are caches, especially the bigger ones, downloading for example core/gcc-12.1.0-2.1-aarch64.pkg.tar.xz, the cache folder only contains after successful download

find "${FLEXO_CACHE_DIRECTORY}/aarch64" | grep -i gcc
/var/cache/flexo/pkg/aarch64/core/gcc-12.1.0-2.1-aarch64.pkg.tar.xz.sig
/var/cache/flexo/pkg/aarch64/core/.gcc-12.1.0-2.1-aarch64.pkg.tar.xz.sig.cfs
nroi commented 1 year ago

This was a bug in scruffy, which is used in the docker setup to purge packages. The issue was independent of the architecture, so it appeared for both X86 and ARM.

This is now fixed with the most recent docker image (tagged with 1.6.8-2).