cleanup_files = ('.gbp.conf', 'debian/gbp.conf', '.git/gbp.conf')
result = git_helper.git_cleanup_branch(cleanup_files)
- result = git_helper.git_commit("Cleanup branch for correct builds.")
+ commit_files = result["goods"].keys()
+ if len(commit_files) > 0:
+ git_helper.git_commit(
+ "Cleanup branch for correct builds.",
+ commit_files
+ )
pb_version_path = os.path.join('debian', 'pb_version')
the branch being used. That way our central configuration is ignored
and builds fail.
"""
- result = dict()
+ result = {
+ "goods": dict()
+ "bads": dict()
+ }
for path in paths:
try:
if not os.path.exists(path):
)
cmd(path)
except Exception, error:
- result.setdefault(path, error)
+ result["bads"].setdefault(path, error)
else:
- result.setdefault(path, True)
+ result["goods"].setdefault(path, True)
return result