From 4dfa6afea88343f188bb245ee90ea656e4d1db4b Mon Sep 17 00:00:00 2001 From: Bob Igo Date: Tue, 28 Jul 2009 15:07:06 -0400 Subject: sometimes kmsync.sh alone is not enough; added 'pacman -Sy' at the end of the sync; per Cecil, this should do no harm --- build_tools/bin/kmsync.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_tools/bin/kmsync.sh b/build_tools/bin/kmsync.sh index 6da7f11..ab1e1dc 100755 --- a/build_tools/bin/kmsync.sh +++ b/build_tools/bin/kmsync.sh @@ -100,6 +100,11 @@ esac } +function pacman_sync () { + echo "running 'pacman -Sy' to sync repos" + pacman -Sy +} + #--------------------------------------------------------------- if [ ! -d $UNISON ] then @@ -127,18 +132,21 @@ case $1 in sync_dirs $REMOTE_DIR/$CARCH/core-testing $DOCROOT/core-testing core-testing sync_dirs $REMOTE_DIR/$CARCH/extra-testing $DOCROOT/extra-testing extra-testing source_sync testing + pacman_sync ;; release) sync_dirs $REMOTE_DIR/$CARCH/core $DOCROOT/core core sync_dirs $REMOTE_DIR/$CARCH/extra $DOCROOT/extra extra source_sync release + pacman_sync ;; chroot-devel) echo "will update chroot-devel" sync_dirs $REMOTE_DIR/$CARCH/chroot-devel $DOCROOT/chroot-devel chroot-devel source_sync chroot-devel + pacman_sync ;; source) @@ -148,6 +156,7 @@ case $1 in exit 1 fi source_sync $2 + pacman_sync ;; *) echo "invalid options" -- cgit v0.12