Signed-off-by: Eric Bélanger <[email protected]>
---

Ideally, this should be done in the chrootdir so we can keep the
public keys in the chroot. At least with this patch, the package is
built instead of just aborting. We can check the source signature on
the main system and ignore the warning message about public keys not found
when building in the chroot.
---
 makechrootpkg.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 9794132..67d3100 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -217,6 +217,9 @@ if [[ -n $PACKAGER ]]; then
        echo "PACKAGER='${PACKAGER}'" >> "$copydir/etc/makepkg.conf"
 fi
 
+# Create directory to check the sources signatures
+mkdir "$copydir/.gnupg"
+
 # Set target CARCH as it might be used within the PKGBUILD to select correct 
sources
 eval $(grep '^CARCH=' "$copydir/etc/makepkg.conf")
 export CARCH
@@ -245,7 +248,7 @@ cp PKGBUILD "$copydir/build/"
        done
 )
 
-chown -R nobody "$copydir"/{build,pkgdest,srcdest}
+chown -R nobody "$copydir"/{build,pkgdest,srcdest,.gnupg}
 
 echo 'nobody ALL = NOPASSWD: /usr/bin/pacman' > 
"$copydir/etc/sudoers.d/nobody-pacman"
 chmod 440 "$copydir/etc/sudoers.d/nobody-pacman"
-- 
1.7.7

Reply via email to