From 0e52bd4b1bd8ac62c29f438792c1e73d0164bb61 Mon Sep 17 00:00:00 2001 From: Steve McIntyre Date: Sat, 7 Feb 2015 23:23:53 +0000 Subject: [PATCH] Backport update-cd update --- debian/changelog | 2 ++ update-cd | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/debian/changelog b/debian/changelog index c9d8955e..4f768517 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ debian-cd (3.1.13-deb7u1) UNRELEASED; urgency=low + tools/apt-selection: pass APT::Architectures:: when calling apt; otherwise if we're running on a multi-arch system apt will break + Factor out the xorriso version-checking code + + update-cd: if we're doing torrents, make sure we include update CD + checksums in bt-$type too -- Steve McIntyre <93sam@debian.org> Mon, 17 June 2013 15:44:32 +0100 diff --git a/update-cd b/update-cd index 038465ad..57d0aa1d 100755 --- a/update-cd +++ b/update-cd @@ -33,6 +33,9 @@ MKISOFS="$PWD/../genisoimage -jigdo-template-compress bzip2 -r -checksum_algorit # Use JTE extensions to mkisofs to make jigdo files? JTE=1 +# Set up torrents too? +BT=1 + # The working directory to use. MUST be on the same partition as the mirror. TDIR=/org/cdbuilder.debian.org/src/deb-cd/tmp/wheezy-update/cd-work @@ -141,6 +144,7 @@ make_cd () { ISODIR=$OUT/$THISARCH/iso-$TYPE JIGDODIR=$OUT/$THISARCH/jigdo-$TYPE LISTDIR=$OUT/$THISARCH/list-$TYPE + BTDIR=$OUT/$THISARCH/bt-$TYPE if [ ! -d ${ISODIR} ] ; then mkdir -p ${ISODIR} @@ -151,6 +155,9 @@ make_cd () { if [ ! -d ${LISTDIR} ] ; then mkdir -p ${LISTDIR} fi + if [ $BT = 1 ] && [ ! -d ${BTDIR} ] ; then + mkdir -p ${BTDIR} + fi if [ $JTE = 1 ] ; then set +e @@ -180,6 +187,7 @@ make_cd () { awk '/Image Hex MD5Sum/ {print $5}'` echo "$MD5 ${BASENAME}.iso" >> ${JIGDODIR}/MD5SUMS.update echo "$MD5 ${BASENAME}.iso" >> ${ISODIR}/MD5SUMS.update + [ $BT = 1 ] && echo "$MD5 ${BASENAME}.iso" >> ${BTDIR}/MD5SUMS.update for SHA_SIZE in 1 256 512; do SHA=`cat ${JIGDODIR}/${BASENAME}.jigdo | \ awk "/Image Hex SHA${SHA_SIZE}Sum/ {print \\$5}"` @@ -189,6 +197,7 @@ make_cd () { fi echo "$SHA ${BASENAME}.iso" >> ${JIGDODIR}/SHA${SHA_SIZE}SUMS.update echo "$SHA ${BASENAME}.iso" >> ${ISODIR}/SHA${SHA_SIZE}SUMS.update + [ $BT = 1 ] && echo "$SHA ${BASENAME}.iso" >> ${BTDIR}/SHA${SHA_SIZE}SUMS.update done gzip -9 ${JIGDODIR}/${BASENAME}.jigdo mv ${JIGDODIR}/${BASENAME}.jigdo.gz ${JIGDODIR}/${BASENAME}.jigdo