From 9e61ab4abaf5eb94df3eb43769649c8e0afe5a7b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 30 Oct 2013 20:38:33 -0400 Subject: chcleanup: manually update repo.db instead of running `pacman -Sy` --- src/chroot-tools/chcleanup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/chroot-tools/chcleanup b/src/chroot-tools/chcleanup index 21c0ec5..0c78989 100755 --- a/src/chroot-tools/chcleanup +++ b/src/chroot-tools/chcleanup @@ -62,10 +62,9 @@ if [ -f PKGBUILD ]; then fi msg "Cleaning chroot..." -msg2 "Fetching updated package lists..." -pacman -Sy || { - warning "There was an error updating package lists, ignoring." -} + +# Sync the local repo with pacman +cp /repo/repo.db /var/lib/pacman/sync/repo.db # Setup the temporary directory TEMPDIR="$(mktemp --tmpdir -d $(basename $0).XXXXX)" -- cgit v1.2.2