mirror of
https://github.com/KDE/kde-linux.git
synced 2026-05-19 14:04:06 -04:00
Select only the latest pacman package archive
Sorts with ls -v to ensure correct version ordering, and prevents bootstrap.sh from failing when ls (previously find) outputs multiple archive paths into tar that are separated by \n.
This commit is contained in:
@@ -27,7 +27,7 @@ pacman-key --populate
|
||||
# --refresh twice to force a refresh
|
||||
mkdir /tmp/pacman
|
||||
pacman --sync --refresh --refresh --downloadonly --noconfirm pacman
|
||||
tar --extract --file "$(find /var/cache/pacman/pkg -name 'pacman-*.pkg.tar.zst')" --directory /tmp/pacman
|
||||
tar --extract --file "$(ls -v /var/cache/pacman/pkg/pacman-[0-9]*.pkg.tar.zst | tail -n 1)" --directory /tmp/pacman
|
||||
cp /tmp/pacman/etc/pacman.conf /etc/pacman.conf
|
||||
|
||||
cp /etc/pacman.conf /etc/pacman.conf.nolinux # store a backup for use in the packages pipeline
|
||||
|
||||
Reference in New Issue
Block a user