From b5a2ca0dc092e113344072ebba6555f3da07cf88 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 22 May 2013 18:01:02 -0400 Subject: fix https://labs.parabola.nu/issues/335 --- src/chroot-tools/librechroot | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/chroot-tools') diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 92bbb94..5027938 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -168,6 +168,8 @@ main() { set +u # if archroot_args is empty, it counts as unbound archroot "${archroot_args[@]}" -m "$rootdir" base-devel set -u + mkdir -p "${rootdir}/repo" + bsdtar -czf "${rootdir}/repo/repo.db.tar.gz" -T /dev/null fi if [[ ! -d $copydir ]] || [[ $mode == sync ]]; then @@ -230,6 +232,7 @@ main() { enter) archroot -r "$copydir" bash;; clean-repo) rm -rf "${copydir}/repo/*" + mkdir -p "${copydir}/repo" bsdtar -czf "${copydir}/repo/repo.db.tar.gz" -T /dev/null ln -s "repo.db.tar.gz" "${copydir}/repo/repo.db" ;; -- cgit v1.2.3-54-g00ecf