pmbootstrap/pmb
Oliver Smith 255c715624
Fix aportgen without initializing buildenv
After initializing the build environment, the cache_distfiles folder
currently is writable by everyone (which is not ideal, fix following
soon). The aportgen code for `busybox-static-*` and `musl-*` copies
the foreign arch `.apk` file to the distfiles, but it executes this
action as regular user and not as root. This only works as long as
build initialization ran before (which may not be the case on Travis
and expecting this to run before is a bug in general).

With this commit, the copy action gets executed as root, so it works
in any case. I'm commiting this directly (without a PR), because it
is a super simple fix and it unblocks our continuous integration.

Local testing:
$ pmbootstrap -y zap
$ sudo rm -r ~/.local/var/pmbootstrap/cache_distfiles
$ pmbootstrap aportgen musl-armhf
2018-03-12 17:17:32 +01:00
..
aportgen Fix aportgen without initializing buildenv 2018-03-12 17:17:32 +01:00
build Properly escape commands in pmb.chroot.user() (#1316) 2018-03-10 22:58:39 +00:00
chroot aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
config Fix building packages by provides name (#1303) 2018-03-08 21:30:55 +00:00
export Use default partitions in odin export if not specified in deviceinfo (#1271) 2018-02-28 01:28:36 +00:00
flasher Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
helpers aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
install deviceinfo: remove external_disk_install and external_disk, use external_storage instead (#1301) 2018-03-07 22:35:02 +00:00
parse aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
qemu qemu: allow the user to specify the kernel flavor (#1256) 2018-02-25 19:20:22 +00:00
__init__.py pmbootstrap: Disallow running as root (#1120) 2018-01-14 08:13:35 +00:00