X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=scripts%2Fdebian%2Fimport_dataset.sh;h=98e120762d6d17384a32db1e4dc936d34bccfecd;hp=d4e1fb74be809d37ff0066fdcec5d136a5a5752f;hb=ab9c05102e8fcb8543003a7b4c99c9a929e25dc9;hpb=8a45c65b3a9a387e4746052214f3e43894ce8491 diff --git a/scripts/debian/import_dataset.sh b/scripts/debian/import_dataset.sh index d4e1fb74..98e12076 100755 --- a/scripts/debian/import_dataset.sh +++ b/scripts/debian/import_dataset.sh @@ -38,9 +38,24 @@ case "${IMPORTSUITE}" in INPUTFILE="/srv/release.debian.org/britney/Heidi/set/current" DO_CHANGELOG="true" ;; - squeeze-volatile) + testing-debug) # What file we look at. - INPUTFILE="/srv/release.debian.org/volatile/set/squeeze-volatile" + INPUTFILE="/srv/release.debian.org/sets/testing-debug/current" + DO_CHANGELOG="false" + ;; + squeeze-updates) + # What file we look at. + INPUTFILE="/srv/release.debian.org/sets/squeeze-updates/current" + DO_CHANGELOG="false" + ;; + wheezy-updates) + # What file we look at. + INPUTFILE="/srv/release.debian.org/sets/wheezy-updates/current" + DO_CHANGELOG="false" + ;; + jessie-updates) + # What file we look at. + INPUTFILE="/srv/release.debian.org/sets/jessie-updates/current" DO_CHANGELOG="false" ;; *) @@ -55,11 +70,11 @@ cd $masterdir echo "Importing new data for ${IMPORTSUITE} into database" if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then - rm ${ftpdir}/dists/${IMPORTSUITE}/ChangeLog + rm -f ${ftpdir}/dists/${IMPORTSUITE}/ChangeLog BRITNEY=" --britney" fi -cat ${INPUTFILE} | dak control-suite --set ${IMPORTSUITE} ${BRITNEY} +dak control-suite --set ${IMPORTSUITE} ${BRITNEY} < ${INPUTFILE} if [ "x${DO_CHANGELOG}x" = "xtruex" ]; then NOW=$(date "+%Y%m%d%H%M") @@ -69,6 +84,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