Skip to content

Commit

Permalink
Merge pull request #126 from archlinux/fix-makepkg-conf
Browse files Browse the repository at this point in the history
fix: use correct makepkg.conf location without silently failing
  • Loading branch information
kpcyrd authored Feb 16, 2024
2 parents d0a4971 + 75dfdc6 commit a0e0f9d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions repro.in
Original file line number Diff line number Diff line change
Expand Up @@ -496,11 +496,14 @@ else
pacman --noconfirm --needed -Sddu "$DEVTOOLS_PKG"
fi

for makepkg_path in /usr/share/devtools/{makepkg-x86_64.conf,makepkg.d/x86_64.conf}; do
if [ -f "\$makepkg_path" ]; then
cp -v "\$makepkg_path" /mnt/etc/makepkg.conf
fi
done
if [[ -f /usr/share/devtools/makepkg.conf.d/x86_64.conf ]]; then
cp -v /usr/share/devtools/makepkg.conf.d/x86_64.conf /mnt/etc/makepkg.conf
elif [[ -f /usr/share/devtools/makepkg-x86_64.conf ]]; then
cp -v /usr/share/devtools/makepkg-x86_64.conf /mnt/etc/makepkg.conf
else
echo "Failed to find the makepkg.conf location, please report to archlinux-repro"
exit 1
fi
__END__
lock_close 9 "$KEYRINGCACHE/$keyring_package.lock"

Expand Down

0 comments on commit a0e0f9d

Please sign in to comment.