changeset 18:d5c24cfce05e

Improve access to a RevisionPackager's build_log
author Bernhard Herzog <bh@intevation.de>
date Tue, 13 Mar 2007 16:51:46 +0100
parents 7c55f3879c4d
children 0cdda44240a6
files treepkg/packager.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/packager.py	Fri Mar 09 19:39:13 2007 +0100
+++ b/treepkg/packager.py	Tue Mar 13 16:51:46 2007 +0100
@@ -205,6 +205,7 @@
     work_dir = _filenameproperty("work")
     binary_dir = _filenameproperty("binary")
     src_dir = _filenameproperty("src")
+    build_log = _filenameproperty("build.log")
 
     def find_dsc_file(self):
         for filename in os.listdir(self.src_dir):
@@ -212,6 +213,9 @@
                 return os.path.join(self.src_dir, filename)
         return None
 
+    def has_build_log(self):
+        return os.path.exists(self.build_log)
+
     def package(self):
         try:
             util.ensure_directory(self.work_dir)
@@ -227,8 +231,7 @@
 
             bin_packager = self.binary_packager_cls(self.pkg_line, self.status,
                                                     self.binary_dir, dsc_file,
-                                                    os.path.join(self.base_dir,
-                                                                 "build.log"))
+                                                    self.build_log)
             bin_packager.package()
             self.status.stop = datetime.datetime.utcnow()
         except:
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)