summaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/bin/kmsync.sh9
1 files changed, 9 insertions, 0 deletions
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"