blob: 63f26669c29523d1fe93a8f652e5db79ff534247 (
plain) (
tree)
|
|
#!/usr/bin/python
# SVN: $Id: edit_changelog.py 5 2006-12-20 14:08:52Z ranke $
# Author: Johannes Ranke <jranke@uni-bremen.de>
# Last Change: 2007 Mai 01
from time import strftime
from debian_bundle.changelog import Changelog, Version
author = 'Johannes Ranke <jranke@uni-bremen.de>'
chlg = "debian/changelog"
content = file(chlg).read()
changelog = Changelog(content)
newVersion = changelog.upstream_version() + "-" + changelog.debian_version() + "~etchcran.1"
changelog.new_block(package=changelog.package(),
version=Version(newVersion),
distributions='etch-cran',
urgency='low',
author=author,
date=strftime("%a, %e %b %Y %H:%M:%S %z"),
)
changelog.add_change('');
changelog.add_change(' * Recompiled on etch for CRAN');
changelog.add_change('');
file(chlg,"w").write(str(changelog))
|