From 79a9c7eebd0c11fa2fb45825a0e2b7de374c5c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Thu, 30 Jun 2022 06:38:05 +0200 Subject: [PATCH] Use host cache before tmpfs cache --- test-in-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-in-docker.sh b/test-in-docker.sh index 9625ff1..1c66226 100755 --- a/test-in-docker.sh +++ b/test-in-docker.sh @@ -40,7 +40,7 @@ test_ares() { # At worst, the cache directory will be ignored if it does not exist # Pacman will always prefer the first cache directory, so newly downloaded # packages will stay in the container - sed -i '"'"'s/^#\?\(CacheDir.*\)/\1\nCacheDir = \/var\/cache\/pacman\/pkg_host\//'"'"' /etc/pacman.conf + sed -i '"'"'s/^#\?\(CacheDir.*\)/CacheDir = \/var\/cache\/pacman\/pkg_host\/\n\1/'"'"' /etc/pacman.conf mkdir -p /var/cache/pacman/pkg_host/ pacman -Syu --noconfirm linux