summaryrefslogtreecommitdiff
path: root/edit_changelog_sarge.py
diff options
context:
space:
mode:
Diffstat (limited to 'edit_changelog_sarge.py')
-rw-r--r--edit_changelog_sarge.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/edit_changelog_sarge.py b/edit_changelog_sarge.py
new file mode 100644
index 0000000..56bef13
--- /dev/null
+++ b/edit_changelog_sarge.py
@@ -0,0 +1,28 @@
+#!/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: 2006 Dez 21
+
+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() + "~sargecran.1"
+
+changelog.new_block(package=changelog.package(),
+ version=Version(newVersion),
+ distributions='sarge-cran',
+ urgency='low',
+ author=author,
+ date=strftime("%a, %e %b %Y %H:%M:%S %z"),
+ )
+
+changelog.add_change('');
+changelog.add_change(' * Backport to sarge for repository on CRAN');
+changelog.add_change('');
+
+file(chlg,"w").write(str(changelog))

Contact - Imprint