[arch-projects] [devtools] [PATCH] makechrootpkg: verify sources before preparing chroot

Evangelos Foutras evangelos at foutrelis.com
Wed Jun 3 18:16:52 UTC 2015


This is needed in order to use GPG's auto-key-retrieve keyserver option,
otherwise the keyring will get copied to the chroot before the required
keys are retrieved during 'makepkg --verifysource'.
---
Note: I would like to commit this later this week and do a new devtools
      release, so reviews on this and the --no-armor patch would be much
      appreciated! [1]

[1] https://lists.archlinux.org/pipermail/arch-projects/2015-May/004278.html

 makechrootpkg.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 207a148..3c8a20f 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -384,10 +384,10 @@ $update_first && arch-nspawn "$copydir" \
 
 [[ -n ${install_pkgs[*]} ]] && install_packages
 
-prepare_chroot
-
 download_sources
 
+prepare_chroot
+
 if arch-nspawn "$copydir" \
 	--bind-ro="$PWD:/startdir_host" \
 	--bind-ro="$SRCDEST:/srcdest_host" \
-- 
2.4.2


More information about the arch-projects mailing list