summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:40:18 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-14 21:40:18 -0400
commit896867538768126d4d9ddd4a502d5be9d9fe7127 (patch)
tree81fe900c0a17cab21d8ca020b4bed92c6888f91a /src/chroot-tools
parent28eefc928e8ce7beb1f540a93fccb1e1ff7b00fb (diff)
chcleanup: run pacman -Sy first to update the local repo
Diffstat (limited to 'src/chroot-tools')
-rwxr-xr-xsrc/chroot-tools/chcleanup2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chroot-tools/chcleanup b/src/chroot-tools/chcleanup
index f957d3b..e407f1e 100755
--- a/src/chroot-tools/chcleanup
+++ b/src/chroot-tools/chcleanup
@@ -45,6 +45,8 @@ fi
msg "Cleaning chroot..."
+pacman -Sy
+
TEMPDIR="$(mktemp --tmpdir -d $(basename $0).XXXXX)"
cp -a /var/lib/pacman/sync "${TEMPDIR}/"
cleanup_log="${TEMPDIR}"/libretools-cleanup.log