X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fimport_dataset.sh;h=6eb39cacda49ec5c1ad7c8bd9f2fd0b860523f3b;hb=ccf6713b942fa54eafddcd035fd59c61ac1f3ecf;hp=1c0a3186b40e8376a5666a75bd0b4c3f4efc7745;hpb=3da143fa7030ca613026360514701867f1890596;p=dak.git diff --git a/scripts/debian/import_dataset.sh b/scripts/debian/import_dataset.sh index 1c0a3186..6eb39cac 100755 --- a/scripts/debian/import_dataset.sh +++ b/scripts/debian/import_dataset.sh @@ -31,16 +31,16 @@ export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars IMPORTSUITE=${1:-"testing"} BRITNEY="" +MD5SUM="${SSH_ORIGINAL_COMMAND}" case "${IMPORTSUITE}" in testing) - # What file we look at. - INPUTFILE="/srv/release.debian.org/britney/Heidi/set/current" DO_CHANGELOG="true" ;; - squeeze-volatile) - # What file we look at. - INPUTFILE="/srv/release.debian.org/volatile/set/squeeze-volatile" + testing-debug) + squeeze-updates) + wheezy-updates) + jessie-updates) DO_CHANGELOG="false" ;; *) @@ -59,7 +59,13 @@ if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then BRITNEY=" --britney" fi -cat ${INPUTFILE} | dak control-suite --set ${IMPORTSUITE} ${BRITNEY} +tmpfile=$(mktemp) +trap "rm -f ${tmpfile}" EXIT +cat > ${tmpfile} +if ! echo "${MD5SUM} ${tmpfile}" | md5sum -c --quiet; then + exit 42 +fi +dak control-suite --set ${IMPORTSUITE} ${BRITNEY} < ${tmpfile} if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then NOW=$(date "+%Y%m%d%H%M") @@ -69,6 +75,9 @@ if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then find . -maxdepth 1 -mindepth 1 -type f -mmin +2880 -name 'ChangeLog.*' -delete fi +#echo "Regenerating Packages/Sources files, be patient" +#dak generate-packages-sources2 -s ${IMPORTSUITE} >/dev/null + echo "Done" exit 0