Fix #1: copying user's abuild keys failed

This commit is contained in:
Oliver Smith 2017-05-27 15:38:04 +02:00
parent e557414563
commit 247a79a1ba
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,7 @@ along with pmbootstrap. If not, see <http://www.gnu.org/licenses/>.
"""
import os
import logging
import glob
import pmb.config
import pmb.chroot
@ -46,8 +47,9 @@ def init(args, suffix="native"):
suffix)
# Copy package signing key to /etc/apk/keys
pmb.chroot.root(args, ["cp", "/home/user/.abuild/*.pub",
"/etc/apk/keys/"], suffix)
for key in glob.glob(chroot + "/home/user/.abuild/*.pub"):
key = key[len(chroot):]
pmb.chroot.root(args, ["cp", key, "/etc/apk/keys/"], suffix)
# Add gzip wrapper, that converts '-9' to '-1'
if not os.path.exists(chroot + "/usr/local/bin/gzip"):