]> err.no Git - dak/commitdiff
config/debian/*: generate old-style buildd archive for squeeze-backports
authorAnsgar Burchardt <ansgar@debian.org>
Fri, 8 Mar 2013 10:47:50 +0000 (11:47 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 8 Mar 2013 10:49:30 +0000 (11:49 +0100)
The suite will be needed until the squeeze-backports buildds switch to the new
location.

config/debian/common
config/debian/cron.unchecked

index 7dcd339b4f26cac6a00eb238ae5bfcc94b0dd429..1e26ed990861e37ea4de8f53691bc979d659bec7 100644 (file)
@@ -33,12 +33,15 @@ function wbtrigger() {
 
 # used by cron.dinstall *and* cron.unchecked.
 function make_buildd_dir () {
+    local overridesuite
+    local suite
+
     dak manage-build-queues -a
     dak generate-packages-sources2 -a build-queues
     dak generate-releases -a build-queues >/dev/null
     ${scriptsdir}/update-buildd-archive ${base}/build-queues ${incoming}/debian-buildd
 
-    for suite in unstable experimental; do
+    for suite in unstable experimental squeeze-backports; do
         rm -rf "$incoming/dists/$suite/buildd"
         dak export-suite -s "buildd-$suite" -d "$incoming/dists/$suite/buildd"
     done
@@ -52,15 +55,20 @@ function make_buildd_dir () {
         if [ "${suite}x" = "projectx" ]; then continue; fi
         cd ${incoming}/dists/${suite}/buildd
 
-        apt-ftparchive packages . $overridedir/override.sid.all3 >Packages
+        overridesuite=sid
+        if [ "${suite}" = "squeeze-backports" ]; then
+            overridesuite="${suite}"
+        fi
+
+        apt-ftparchive packages . $overridedir/override.${overridesuite}.all3 >Packages
         gzip -9c --rsyncable <Packages >Packages.gz
-        apt-ftparchive sources . $overridedir/override.sid.all3 >Sources
+        apt-ftparchive sources . $overridedir/override.${overridesuite}.all3 >Sources
         gzip -9c --rsyncable <Sources >Sources.gz
 
         rm -f buildd/Release
         cd ..
         apt-ftparchive -qq -o APT::FTPArchive::Release::Origin="Debian" -o APT::FTPArchive::Release::Label="Debian" -o APT::FTPArchive::Release::Description="buildd $suite incoming" -o APT::FTPArchive::Release::Architectures="$archs" release buildd >Release
-        if [ "$suite" = "experimental" ]; then
+        if [ "$suite" = "experimental" -o "${suite}" = "squeeze-backports" ]; then
             echo "NotAutomatic: yes" >>Release
         fi
 
index 5e819adfadd0f2e6b6982452e19e4be64c0c2589..fb5c454ac22cd95bf3a68db45f4f0bd2f8c4fcaf 100755 (executable)
@@ -63,11 +63,13 @@ function do_buildd () {
         LOCKDAILY="YES"
         cd $overridedir
         dak make-overrides &>/dev/null
-        rm -f override.sid.all3 override.sid.all3.src
+        rm -f override.sid.all3 override.sid.all3.src override.squeeze-backports.all3 override.squeeze-backports.all3.src
         for i in main contrib non-free main.debian-installer; do
             cat override.sid.$i >> override.sid.all3
+            cat override.squeeze-backports.$i >> override.squeeze-backports.all3
             if [ "$i" != "main.debian-installer" ]; then
                 cat override.sid.$i.src >> override.sid.all3.src
+                cat override.squeeze-backports.$i.src >> override.squeeze-backports.all3.src
             fi
         done
         make_buildd_dir