]> git.decadent.org.uk Git - dak.git/commitdiff
add s390 to arch list, autobuilding from accepted bits
authorRyan Murray <rmurray@debian.org>
Sun, 5 May 2002 19:59:32 +0000 (19:59 +0000)
committerRyan Murray <rmurray@debian.org>
Sun, 5 May 2002 19:59:32 +0000 (19:59 +0000)
apt.conf.buildd [new file with mode: 0644]
cameron [new file with mode: 0755]
cron.buildd [new file with mode: 0644]
vars

diff --git a/apt.conf.buildd b/apt.conf.buildd
new file mode 100644 (file)
index 0000000..ddf9224
--- /dev/null
@@ -0,0 +1,29 @@
+Dir 
+{
+   ArchiveDir "/org/incoming.debian.org/buildd/";
+   OverrideDir "/org/ftp.debian.org/scripts/override/";
+   CacheDir "/org/ftp.debian.org/database/";
+};
+
+Default
+{
+   Packages::Compress ". gzip";
+   Sources::Compress ". gzip";
+   DeLinkLimit 0;
+   MaxContentsChange 12000;
+   FileMode 0664;
+}
+
+bindirectory "incoming"
+{
+   Packages "Packages";
+   Sources "Sources";
+   Contents " ";
+
+   FileList "/org/ftp.debian.org/database/dists/unstable_accepted.list";
+
+   BinOverride "override.sid.all3";
+   BinCacheDB "packages-accepted.db";
+   PathPrefix "";
+   Packages::Extensions ".deb .udeb";
+};
diff --git a/cameron b/cameron
new file mode 100755 (executable)
index 0000000..6f8aeb7
--- /dev/null
+++ b/cameron
@@ -0,0 +1,57 @@
+#!/usr/bin/env python
+
+# Generate file list for unstable_accepted
+# Copyright (C) 2002  James Troup <james@nocrew.org>
+# $Id: cameron,v 1.1 2002-05-05 19:59:32 rmurray Exp $
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+################################################################################
+
+import pg, string, os, sys
+import apt_pkg
+import db_access, utils, claire, logging
+
+################################################################################
+
+projectB = None
+Cnf = None
+Logger = None;
+
+################################################################################
+
+def main():
+    global Cnf, projectB;
+
+    Cnf = utils.get_conf()
+
+    Arguments = [('h',"help","Cameron::Options::Help")];
+                 
+    apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
+
+    projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
+    db_access.init(Cnf, projectB);
+    list = utils.open_file("%s/unstable_accepted.list" % (Cnf["Dir::ListsDir"]), "w")
+    q = projectB.query("SELECT filename FROM unstable_accepted WHERE in_accepted AND filename ~ '(u?deb|dsc)$'");
+    entries = q.getresult();
+    for entry in entries:
+        filename = os.path.dirname(entry[0])+'/incoming/'+os.path.basename(entry[0]);
+       list.write("%s\n" % (filename))
+    list.close()
+
+#########################################################################################
+
+if __name__ == '__main__':
+    main()
diff --git a/cron.buildd b/cron.buildd
new file mode 100644 (file)
index 0000000..6704517
--- /dev/null
@@ -0,0 +1,20 @@
+#! /bin/sh
+#
+# Executed hourly via cron, out of katie's crontab.
+
+ARCHS="alpha hppa i386 ia64 mips mipsel powerpc sparc"
+
+set -e
+export SCRIPTVARS=/org/ftp.debian.org/katie/vars
+. $SCRIPTVARS
+
+if [ ! -e $ftpdir/Archive_Maintenance_In_Progress ]; then
+       cd $masterdir
+       cameron
+       apt-ftparchive -qq generate apt.conf.buildd
+       cd /org/incoming.debian.org/buildd
+       for a in $ARCHS; do
+               quinn-diff -a /org/buildd.debian.org/web/quinn-diff/Packages-arch-specific -A $a 2>/dev/null | grep -v ^non-free | wanna-build -b $a/build-db --merge-partial-quinn 2> /dev/null
+               wanna-build -A $a -b $a/build-db --merge-packages Packages 2>/dev/null
+       done
+fi
diff --git a/vars b/vars
index 5d40443ae06db242f4283fb9206a2860bf495719..00154b28e0c7edcc36a5953e8141b819261c1008 100644 (file)
--- a/vars
+++ b/vars
@@ -4,7 +4,7 @@ base=/org/ftp.debian.org
 ftpdir=$base/ftp
 webdir=$base/web
 indices=$ftpdir/indices
-archs="alpha arm hppa hurd-i386 i386 ia64 m68k powerpc sparc mips mipsel sh"
+archs="alpha arm hppa hurd-i386 i386 ia64 m68k powerpc sparc mips mipsel sh s390"
 
 scriptdir=$base/scripts
 masterdir=$base/katie/