diff options
author | Bob Igo <bob@stormlogic.com> | 2009-07-28 19:07:06 (GMT) |
---|---|---|
committer | Bob Igo <bob@stormlogic.com> | 2009-07-28 19:07:06 (GMT) |
commit | 4dfa6afea88343f188bb245ee90ea656e4d1db4b (patch) | |
tree | 9dcb63c519dfb271613805bd7b0c2eac0a01c5aa /build_tools/bin | |
parent | 306c0b571a01dd961f06f88f97a2e72344da50b1 (diff) | |
download | linhes_dev-4dfa6afea88343f188bb245ee90ea656e4d1db4b.zip |
sometimes kmsync.sh alone is not enough; added 'pacman -Sy' at the end of the sync; per Cecil, this should do no harm
Diffstat (limited to 'build_tools/bin')
-rwxr-xr-x | build_tools/bin/kmsync.sh | 9 |
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" |