]> git.decadent.org.uk Git - dak.git/commitdiff
notautomatic
authorJoerg Jaspert <joerg@debian.org>
Thu, 21 Jan 2010 20:49:47 +0000 (21:49 +0100)
committerJoerg Jaspert <joerg@debian.org>
Thu, 21 Jan 2010 20:49:47 +0000 (21:49 +0100)
build queues can now be notautomatic.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/dbconn.py

index 720e11e32e6a87a62a520aab300cc2ab27cb6b1d..9c46bba515ff3b6871c1b949908ca409ae063d50 100755 (executable)
@@ -530,6 +530,12 @@ class BuildQueue(object):
 
             os.system("""apt-ftparchive -qq -o APT::FTPArchive::Release::Origin="%s" -o APT::FTPArchive::Release::Label="%s" -o APT::FTPArchive::Release::Description="%s" -o APT::FTPArchive::Release::Architectures="%s" release %s > Release""" % (self.origin, self.label, self.releasedescription, arches, bname))
 
+            # Crude hack with open and append, but this whole section is and should be redone.
+            if self.notautomatic:
+                release=open("Release", "a")
+                release.write("NotAutomatic: yes")
+                release.close()
+
             # Sign if necessary
             if self.signingkey:
                 cnf = Config()