summaryrefslogblamecommitdiff
path: root/edit_changelog.py
blob: 34bf950f60525267ec4dcc0f9a39b73aa6886b14 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                 


                                               
 
                         



                                                      
                         


                                                                                          
 

                                                
                                              

                                  
                                                              


                         
                                                                    

                         
                                    
#!/usr/bin/python
# SVN: $Id$
# Author: Johannes Ranke <jranke@uni-bremen.de>
# Last Change: 2006 Dez 20

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-cran',
                    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))

Contact - Imprint