Skip to content

Commit a0e0f9d

Browse files
authored
Merge pull request #126 from archlinux/fix-makepkg-conf
fix: use correct makepkg.conf location without silently failing
2 parents d0a4971 + 75dfdc6 commit a0e0f9d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

repro.in

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,14 @@ else
496496
pacman --noconfirm --needed -Sddu "$DEVTOOLS_PKG"
497497
fi
498498

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

0 commit comments

Comments
 (0)