blob: d85d48b7b49f827b7e95bb7647a8096cec6171ca (
plain) (
tree)
|
|
#!/usr/bin/python
# edit_changelog.py
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() + "~cran.1"
changelog.new_block(package=changelog.package(),
version=Version(newVersion),
distributions='etch-backports',
urgency='low',
author=author,
date=strftime("%a, %e %b %Y %H:%M:%S %z"),
)
changelog.add_change('');
changelog.add_change(' * Backport to etch for repository on CRAN');
changelog.add_change('');
file(chlg,"w").write(str(changelog))
|