Mercurial > treepkg
comparison recipes/gnupg/gnupg2.py @ 157:13de20d2db9f
gnupg2 recipe: create the pkits log with 0644 permissions
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 11 Jun 2008 12:59:17 +0000 |
parents | 27e78096a3fe |
children | e4512f045999 |
comparison
equal
deleted
inserted
replaced
156:27e78096a3fe | 157:13de20d2db9f |
---|---|
64 else: | 64 else: |
65 logging.info("Could not find PKITS LOG in %s", self.logfile) | 65 logging.info("Could not find PKITS LOG in %s", self.logfile) |
66 return | 66 return |
67 treepkg.util.ensure_directory(os.path.dirname(self.pkits_log)) | 67 treepkg.util.ensure_directory(os.path.dirname(self.pkits_log)) |
68 treepkg.util.writefile(self.pkits_log, | 68 treepkg.util.writefile(self.pkits_log, |
69 self.htmlize_pkits_log(testlog)) | 69 self.htmlize_pkits_log(testlog), 0644) |
70 | 70 |
71 def htmlize_pkits_log(self, raw_lines): | 71 def htmlize_pkits_log(self, raw_lines): |
72 loader = TemplateLoader([os.path.dirname(__file__)]) | 72 loader = TemplateLoader([os.path.dirname(__file__)]) |
73 template = loader.load("pkits.html") | 73 template = loader.load("pkits.html") |
74 pkits = treepkg.report.struct(revision=self.parent.revision, | 74 pkits = treepkg.report.struct(revision=self.parent.revision, |