[Piuparts-commits] [piuparts] 01/02: piuparts-report.py: Restore counts.txt to web
Holger Levsen
holger at moszumanska.debian.org
Sat Jun 21 16:59:33 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 0ba1a6d8a826bfec9fd7999762846cc200b25f83
Author: David Steele <dsteele at gmail.com>
Date: Wed May 28 20:34:19 2014 -0400
piuparts-report.py: Restore counts.txt to web
Commit 70fe80693 moved the counts.txt file, which drives the section test
result chart, from the web section directory to the master section directory,
making it no longer visible from a web view. This change restores a copy of
the counts.txt file to its original location, in the web section directory.
---
debian/changelog | 2 ++
piuparts-report.py | 3 +++
2 files changed, 5 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index efda2d7..00d0fd2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -42,6 +42,8 @@ piuparts (0.59) UNRELEASED; urgency=low
* piuparts-report.py:
- Fix indentation of generate_global_summary()
- Refactor sections_by_precedence() out of generate_global_summary().
+ - Restore (a copy of) the counts.txt file to the web view, in
+ <section>/counts.txt.
-- Holger Levsen <holger at debian.org> Thu, 01 May 2014 00:42:23 +0200
diff --git a/piuparts-report.py b/piuparts-report.py
index 112832d..1cd5aed 100644
--- a/piuparts-report.py
+++ b/piuparts-report.py
@@ -979,6 +979,9 @@ class Section:
if not current_day in last_line:
append_file(countsfile, counts)
logging.debug("appending line: %s" % counts.strip())
+
+ shutil.copy(countsfile, self._output_directory)
+
return total
--
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