From 604bb3ce800075c94ebacda677beb73e2cf69642 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 18 Mar 2020 12:08:34 +0000 Subject: modify kiss-chbuild FossilOrigin-Name: 1e6f5a2cb8997fff0a821d035d1fe848c25a8beb9b7e07ee57a7a11d55f0039f --- contrib/kiss-chbuild | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'contrib/kiss-chbuild') diff --git a/contrib/kiss-chbuild b/contrib/kiss-chbuild index 28a1544..9df18cc 100755 --- a/contrib/kiss-chbuild +++ b/contrib/kiss-chbuild @@ -8,27 +8,26 @@ log() { clean() { log "Destroying chroot" - su -c "rm -rf chroot-$pid" || clean } pid=$$ -url=https://github.com/kisslinux/repo/releases/download/1.9.0/ cd "${cac_dir:=$KISS_ROOT${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" -[ -f kiss-chroot.tar.xz ] || { +[ -f carbs-rootfs.tar.xz ] || { log "Downloading chroot tarball" - wget "$url/kiss-chroot.tar.xz" + wget https://dl.carbslinux.org/releases/carbs-rootfs.tar.xz } -[ -d kiss-chroot ] || { +[ -d carbs-chroot ] || { log "Extracting chroot" - tar xvf kiss-chroot.tar.xz + mkdir -p carbs-chroot + tar xvf carbs-rootfs.tar.xz -C carbs-chroot } log "Creating temporary chroot" -cp -a kiss-chroot "chroot-$pid" +cp -a carbs-chroot "chroot-$pid" trap clean EXIT INT -- cgit v1.2.3