summaryrefslogtreecommitdiff
path: root/src/chroot-tools
diff options
context:
space:
mode:
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