summaryrefslogtreecommitdiff
path: root/examples/cron/snapshots.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-21 10:38:07 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:33 +0100
commit87a3a037f13b87238bbc6c106af47c163660527e (patch)
treea2b91077979a72e4d5ce2398900fd07b5fbb8af4 /examples/cron/snapshots.sh
parent2b52e06bf38fe0690186dc7778cbd954294c3523 (diff)
downloadvyos-live-build-87a3a037f13b87238bbc6c106af47c163660527e.tar.gz
vyos-live-build-87a3a037f13b87238bbc6c106af47c163660527e.zip
Adding debian-unofficial-archive-keyring to snapshots.
Diffstat (limited to 'examples/cron/snapshots.sh')
-rwxr-xr-xexamples/cron/snapshots.sh22
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