diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-21 10:38:07 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2008-04-21 10:38:07 +0200 |
commit | 0c694993b75fcebb3dc1e3bb549eca0549f0d912 (patch) | |
tree | a2b91077979a72e4d5ce2398900fd07b5fbb8af4 /examples/cron | |
parent | 3c5260ea4d88829747f6dbb87984a8de9d080cda (diff) | |
download | vyos-live-build-0c694993b75fcebb3dc1e3bb549eca0549f0d912.tar.gz vyos-live-build-0c694993b75fcebb3dc1e3bb549eca0549f0d912.zip |
Adding debian-unofficial-archive-keyring to snapshots.
Diffstat (limited to 'examples/cron')
-rwxr-xr-x | examples/cron/snapshots.sh | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh index 10e0a4395..bfd25b303 100755 --- a/examples/cron/snapshots.sh +++ b/examples/cron/snapshots.sh @@ -5,7 +5,7 @@ if [ -n "${1}" ] then PACKAGES="${@}" else - PACKAGES="live-helper live-initramfs live-initscripts live-webhelper" + PACKAGES="live-helper live-initramfs live-initscripts live-webhelper debian-unofficial-archive-keyring" fi DEBEMAIL="debian-live-devel@lists.alioth.debian.org" @@ -57,10 +57,28 @@ do # Getting sources cd "${TEMPDIR}" - git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git + + case "${PACKAGE}" in + debian-unofficial-archive-keyring) + git clone git://git.debian.net/git/${PACKAGE}.git + ;; + + *) + git clone git://git.debian.org/git/users/daniel/${PACKAGE}.git + ;; + esac # Getting version cd "${TEMPDIR}"/${PACKAGE} + + for BRANCH in debian + do + if [ -n "$(git branch -r | grep ${BRANCH})" ] + then + git checkout -b ${BRANCH} origin/${BRANCH} || true + fi + done + VERSION="$(dpkg-parsechangelog | awk '/Version:/ { print $2 }' | awk -F- '{ print $1 }')" # Getting revision |