From: Mark Hymers Date: Wed, 4 Nov 2009 18:57:19 +0000 (+0000) Subject: remove the release file before generating the new one X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=cee9667173daa8d1f0719d5a53543f5129fb0bc7;p=dak.git remove the release file before generating the new one Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c7c14765..c29040a4 100644 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -514,6 +514,14 @@ class BuildQueue(object): bname = os.path.basename(self.path) os.chdir(self.path) os.chdir('..') + + # We have to remove the Release file otherwise it'll be included in the + # new one + try: + os.unlink(os.path.join(bname, 'Release')) + except OSError: + pass + 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)) # Sign if necessary