summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-12-16 11:53:15 -0600
committerSol Jerome <sol.jerome@gmail.com>2013-12-16 11:53:15 -0600
commit39b38f5cf18c9bd7f755f4f3bbe3c17ca37cd4fa (patch)
tree2fbf8f25ee4e5459373b016dbc59f20df039e7cf /tools
parent11de3ad6a60b0917e320d9b3db26ba46fccb3ac0 (diff)
downloadbcfg2-39b38f5cf18c9bd7f755f4f3bbe3c17ca37cd4fa.tar.gz
bcfg2-39b38f5cf18c9bd7f755f4f3bbe3c17ca37cd4fa.tar.bz2
bcfg2-39b38f5cf18c9bd7f755f4f3bbe3c17ca37cd4fa.zip
misc/bcfg2.spec: Remove upstream release comments
We don't need to make changelog edits every time there's a new release. This just clutters up the changelog without adding any useful information. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/export.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/tools/export.py b/tools/export.py
index bdb85de41..dc2878e3e 100755
--- a/tools/export.py
+++ b/tools/export.py
@@ -163,43 +163,6 @@ E.G. 1.2.0pre1 is a valid version.
print(help_message)
quit()
- if version_info['build'] == '':
- rpmchangelog = ["* %s %s <%s> %s-1\n" %
- (datetime.datetime.now().strftime("%a %b %d %Y"),
- name, email, version_release),
- "- New upstream release\n", "\n"]
- else:
- rpmchangelog = ["* %s %s <%s> %s-0.%s.%s\n" %
- (datetime.datetime.now().strftime("%a %b %d %Y"),
- name, email, version_release,
- version_info['build'][-1], version_info['build']),
- "- New upstream release\n", "\n"]
-
- # write out the new RPM changelog
- specs = ["misc/bcfg2.spec",
- "misc/bcfg2-selinux.spec"]
- if options.dryrun:
- print("*** Add the following to the top of the %%changelog section in %s:\n%s\n"
- % (rpmchangelog, " and ".join(specs)))
- else:
- for fname in specs:
- try:
- lines = open(fname).readlines()
- for lineno in range(len(lines)):
- if lines[lineno].startswith("%changelog"):
- break
- else:
- print("No %changelog section found in %s" % fname)
- continue
- for line in reversed(rpmchangelog):
- lines.insert(lineno + 1, line)
- open(fname, 'w').write("".join(lines))
- except:
- err = sys.exc_info()[1]
- print("Could not write %s: %s" % (fname, err))
- print(help_message)
- quit()
-
# update solaris version
find_and_replace('solaris/Makefile', 'VERS=',
'VERS=%s-1\n' % version,