From cee9667173daa8d1f0719d5a53543f5129fb0bc7 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 4 Nov 2009 18:57:19 +0000 Subject: [PATCH] remove the release file before generating the new one Signed-off-by: Mark Hymers --- daklib/dbconn.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5