diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2017-02-15 14:40:06 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@parabola.nu> | 2017-07-05 15:37:17 -0400 |
commit | 7c20294dd96519953537d2d6b5d1735dceafb05e (patch) | |
tree | e6a62010f859856da42265dfcdda3eaa38a77471 /archrm.in | |
parent | c242c6bf2f21d212d935f9ef6f7dd78910d6c601 (diff) | |
download | devtools32-7c20294dd96519953537d2d6b5d1735dceafb05e.tar.xz |
makechrootpkg, arch-nspawn: Force-enable local '/repo/' repository.
The change in arch-nspawn is subtle:
This was the source of "infamous" "it fails every other time" bug that
took me over a year to solve. <https://labs.parabola.nu/issues/435>
By having a repository of local packages (rather than simply running
`pacman -U`), we are inviting pacman to cache them in
`/var/cache/pacman/pkg`. Besides being needless disk writes, this
actually causes a real issue. If the package gets rebuilt, pacman
will balk, as the file no longer matches the cached signature.
So, how do we prevent pacman from caching these local packages?
Simple: include the directory they are already in in the
pacman.conf:CacheDir list. This will prevent pacman from copying
the files to one of the other cache directories.
Diffstat (limited to 'archrm.in')
0 files changed, 0 insertions, 0 deletions