Prioritize exact Core private package cache in Purpose transactions
This commit is contained in:
parent
bb63417f08
commit
70c671cf0d
1 changed files with 5 additions and 1 deletions
|
|
@ -55,8 +55,12 @@ mount --bind /var/cache/pacman/pkg "$stage/var/cache/pacman/pkg"
|
|||
test ! -e "$stage/job"
|
||||
mkdir -p "$stage/job/package-repo"
|
||||
cp -a /job/package-repo/. "$stage/job/package-repo/"
|
||||
# Same-version private builds can have different bytes and signing keys. Match
|
||||
# Core's cache ordering so stale shared-cache signatures cannot shadow this run.
|
||||
cp -a /job/private-package-cache "$stage/job/private-package-cache"
|
||||
sed -i '/\[options\]/a CacheDir = /job/private-package-cache\nCacheDir = /var/cache/pacman/pkg' "$stage/etc/pacman.conf"
|
||||
arch-chroot "$stage" pacman -S --needed --noconfirm -- "${desktop_packages[@]}" 2>&1 | tee /job/evidence/purpose-transaction.log
|
||||
rm -rf "$stage/job/package-repo"
|
||||
rm -rf "$stage/job/package-repo" "$stage/job/private-package-cache"
|
||||
rmdir "$stage/job"
|
||||
umount "$stage/var/cache/pacman/pkg"
|
||||
umount "$stage"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue