[Piuparts-commits] [piuparts] 05/06: piuparts-report.py: Restore counts.txt to web
Holger Levsen
holger at moszumanska.debian.org
Sat Jun 21 12:28:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch submission
in repository piuparts.
commit 90984940b1e5f03db18c6aadd61abb2e95b53e8c
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 0ad9a56..e887094 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.
* Remove oldstable distribution results from the JSON summary.
- Also remote stable distribution results.
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