From 87a3a037f13b87238bbc6c106af47c163660527e Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Apr 2008 10:38:07 +0200
Subject: Adding debian-unofficial-archive-keyring to snapshots.

---
 examples/cron/snapshots.sh | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index 10e0a43..bfd25b3 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
-- 
cgit v1.0