[Piuparts-commits] rev 326 - trunk
Holger Levsen
holger at alioth.debian.org
Mon Apr 6 10:55:03 UTC 2009
Author: holger
Date: 2009-04-06 10:55:02 +0000 (Mon, 06 Apr 2009)
New Revision: 326
Modified:
trunk/piuparts-report.py
Log:
create (counts|sources).txt at the correct locations
Modified: trunk/piuparts-report.py
===================================================================
--- trunk/piuparts-report.py 2009-04-06 00:36:30 UTC (rev 325)
+++ trunk/piuparts-report.py 2009-04-06 10:55:02 UTC (rev 326)
@@ -647,11 +647,12 @@
logging.debug("%s: %s" % (state, count))
header += "\n"
counts += "\n"
-
- if not os.path.isfile("counts.txt"):
- write_file("counts.txt", header)
- append_file("counts.txt", counts)
+ countsfile = os.path.join(self._output_directory, "counts.txt")
+ if not os.path.isfile(countsfile):
+ write_file(countsfile, header)
+ append_file(countsfile, counts)
+
def find_log(self, package):
n = self._binary_db._logdb._log_name(package["Package"], package["Version"])
for dirname in self._db._all:
@@ -693,7 +694,7 @@
"binaryrows": binaryrows,
}))
f.close()
- write_file("sources.txt", sources)
+ write_file(os.path.join(self._output_directory, "sources.txt"), sources)
def generate_file_output(self):
self.write_counts_summary()
More information about the Piuparts-commits
mailing list