Commit c87d1c46 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

update_chroot() use chroot

parent 07dd6a73
# Author: Bernhard Landauer <bernhard@manjaro.org>
pkgname=manjaro-chrootbuild
pkgver=r196.gdc0f7ee
pkgver=r197.g07dd6a7
pkgrel=1
pkgdesc="Build packages and buildlists in a chroot filesystem."
arch=('any')
......
......@@ -68,12 +68,11 @@ conf_pacman() {
update_chroot() {
[[ ! -e $1/.mount ]] && chroot_api_mount $1 && touch $1/.{mount,lock}
cmd=yu
msg "Configure branch [$2]"
conf_pacman
set_branch $2
msg "Update chroot file system"
pacman --sysroot $1 -S$cmd --noconfirm || abort "Failed to update chroot."
sudo chroot ${CHROOT_DIR} pacman -Syu --noconfirm || abort "Failed to update chroot."
}
create_chroot() {
......@@ -126,7 +125,6 @@ EOF
# install buildscript
install -m755 /etc/chrootbuild/build.sh "$1/usr/bin/chrootbuild"
# set_branch $(get_branch /${MIRROR_CONF}) ${mirror_conf}
update_chroot $1 ${BRANCH}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment