summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-30 20:38:33 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-30 20:38:33 -0400
commit9e61ab4abaf5eb94df3eb43769649c8e0afe5a7b (patch)
tree1ba429f4638bea4aafe50fcd19016601f82db194
parent846472f0eb77841b8a9be52a897458b602b6dae7 (diff)
chcleanup: manually update repo.db instead of running `pacman -Sy`
-rwxr-xr-xsrc/chroot-tools/chcleanup7
1 files changed, 3 insertions, 4 deletions
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)"