diff --git a/npf/build.py b/npf/build.py index bcc6ae3..e8dff17 100755 --- a/npf/build.py +++ b/npf/build.py @@ -116,7 +116,7 @@ def _writeversion(self, filename, all_results, allow_overwrite): for key, val in sorted(run.variables.items()): if type(val) is tuple: val = val[1] - v.append((key + ":" + str(val).replace(':','\:')).replace(',','\,')) + v.append((key + ":" + str(val).replace('\:', ':').replace(':','\:')).replace('\,', ',').replace(',','\,')) type_results = [] for t,r in results.items(): str_results = [] @@ -200,7 +200,8 @@ def writeResults(self): filename = self.__resultFilename() if not os.path.exists(os.path.dirname(filename)): os.makedirs(os.path.dirname(filename)) - open(filename, 'a').close() + + open(filename, 'w').close() def build_path(self): return self.repo.get_build_path()