diff treepkg/packager.py @ 84:98a7d70746a9

Make BinaryPackager remove all files that do not belong to the binary package from the pkg/<rev>/binary directory after pbuilder finished. Also, add tests for this and some corresponding test support code.
author Bernhard Herzog <bh@intevation.de>
date Mon, 10 Sep 2007 17:13:33 +0000
parents 0af2fa3790e0
children 31b0567df051
line wrap: on
line diff
--- a/treepkg/packager.py	Fri Aug 31 17:07:18 2007 +0000
+++ b/treepkg/packager.py	Mon Sep 10 17:13:33 2007 +0000
@@ -195,6 +195,11 @@
                            logfile=self.logfile, bindir=self.binary_dir,
                            dsc=self.dsc_file),
                  suppress_output=True)
+        # remove the source package files put into the binary directory
+        # by pbuilder
+        for filename in os.listdir(self.binary_dir):
+            if os.path.splitext(filename)[1] not in (".deb", ".changes"):
+                os.remove(os.path.join(self.binary_dir, filename))
         self.status.binary_package_created()
 
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)