[Treepkg-commits] r65 - trunk/treepkg
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jun 2 17:46:41 CEST 2008
Author: bh
Date: 2008-06-02 17:46:41 +0200 (Mon, 02 Jun 2008)
New Revision: 65
Modified:
trunk/treepkg/packager.py
Log:
Add RevisionPackager method list_log_files which returns a description
of the log files available for that revision
Modified: trunk/treepkg/packager.py
===================================================================
--- trunk/treepkg/packager.py 2008-06-02 15:01:34 UTC (rev 64)
+++ trunk/treepkg/packager.py 2008-06-02 15:46:41 UTC (rev 65)
@@ -238,6 +238,17 @@
def has_build_log(self):
return os.path.exists(self.build_log)
+ def list_log_files(self):
+ """Returns a list describing the logfiles available for the revision.
+ Each list item is a tuple of the form (TITLE, FILENAME) where
+ TITLE is a string with a title usable in e. g. a web-page, and
+ FILENAME is the absolute filename of the log file.
+ """
+ files = []
+ if self.has_build_log():
+ files.append(("build log", self.build_log))
+ return files
+
def list_source_files(self):
"""Returns a list with the names of the files of the source package.
The implementation assumes that all files in self.src_dir belong
More information about the Treepkg-commits
mailing list