forked from Mirror/pmbootstrap
Fix #1: copying user's abuild keys failed
This commit is contained in:
parent
e557414563
commit
247a79a1ba
1 changed files with 4 additions and 2 deletions
|
@ -18,6 +18,7 @@ along with pmbootstrap. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
|
import glob
|
||||||
|
|
||||||
import pmb.config
|
import pmb.config
|
||||||
import pmb.chroot
|
import pmb.chroot
|
||||||
|
@ -46,8 +47,9 @@ def init(args, suffix="native"):
|
||||||
suffix)
|
suffix)
|
||||||
|
|
||||||
# Copy package signing key to /etc/apk/keys
|
# Copy package signing key to /etc/apk/keys
|
||||||
pmb.chroot.root(args, ["cp", "/home/user/.abuild/*.pub",
|
for key in glob.glob(chroot + "/home/user/.abuild/*.pub"):
|
||||||
"/etc/apk/keys/"], suffix)
|
key = key[len(chroot):]
|
||||||
|
pmb.chroot.root(args, ["cp", key, "/etc/apk/keys/"], suffix)
|
||||||
|
|
||||||
# Add gzip wrapper, that converts '-9' to '-1'
|
# Add gzip wrapper, that converts '-9' to '-1'
|
||||||
if not os.path.exists(chroot + "/usr/local/bin/gzip"):
|
if not os.path.exists(chroot + "/usr/local/bin/gzip"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue