[Piuparts-commits] [piuparts] 01/02: fixup: Move counts.txt from htdocs to master directory.

Holger Levsen holger at moszumanska.debian.org
Wed May 21 17:28:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 70fe80693f700d43b7263e5ee38d5cec32e8446c
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed May 21 19:20:35 2014 +0200

    fixup: Move counts.txt from htdocs to master directory.
---
 piuparts-report.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/piuparts-report.py b/piuparts-report.py
index 1dfd7c6..4aca7a7 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -725,7 +725,6 @@ class Section:
         logging.debug("-------------------------------------------")
         logging.debug("Running section " + self._config.section)
 
-        self._master_directory = master_directory
         self._section_directory = os.path.abspath(os.path.join(master_directory, \
                                                                self._config.section))
         if not os.path.exists(self._section_directory):
@@ -970,7 +969,7 @@ class Section:
         header += "\n"
         counts += "\n"
 
-        countsfile = os.path.join(self._master_directory, "counts.txt")
+        countsfile = os.path.join(self._section_directory, "counts.txt")
         if not os.path.isfile(countsfile):
             logging.debug("writing new file: %s" % countsfile)
             write_file(countsfile, header)
@@ -1200,7 +1199,7 @@ class Section:
 
 
     def make_section_stats_graph(self):
-        countsfile = os.path.join(self._master_directory, "counts.txt")
+        countsfile = os.path.join(self._section_directory, "counts.txt")
         pngfile = os.path.join(self._output_directory, "states.png")
         grdevices = importr('grDevices')
         grdevices.png(file=pngfile, width=1600, height=900, pointsize=10, res=100, antialias="none")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list