diff options
-rw-r--r-- | backport_recommended_sarge.sh | 7 | ||||
-rw-r--r-- | edit_changelog_sarge.py | 10 |
2 files changed, 10 insertions, 7 deletions
diff --git a/backport_recommended_sarge.sh b/backport_recommended_sarge.sh index ea18749..ca1f75b 100644 --- a/backport_recommended_sarge.sh +++ b/backport_recommended_sarge.sh @@ -7,9 +7,10 @@ # debian/changelog and debian/control have to be hand-edited # for nlme and rpart, replacing their build dependency on # r-cran-survival by r-recommended (=2.4.0-0sarge2) -# Last Change: 2007 Jan 03 +# Last Change: 2007 Feb 05 -for i in boot cluster foreign kernsmooth lattice mgcv nlme rpart survival vr; do +for i in survival; do +#for i in boot cluster foreign kernsmooth lattice mgcv nlme rpart survival vr; do cd $i rm -rf $i* apt-get source -t unstable r-cran-$i @@ -17,6 +18,6 @@ for i in boot cluster foreign kernsmooth lattice mgcv nlme rpart survival vr; do cp ../../r-sarge-cran-recommended.mk debian/rules sed -i 's/^Replaces:.*/&, r-recommended (= 2.4.0-0sarge2)/' debian/control python ../../edit_changelog_sarge.py - fakeroot dpkg-buildpackage + fakeroot dpkg-buildpackage -sa cd ../.. done diff --git a/edit_changelog_sarge.py b/edit_changelog_sarge.py index 13123ff..3772a36 100644 --- a/edit_changelog_sarge.py +++ b/edit_changelog_sarge.py @@ -1,7 +1,7 @@ #!/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 +# Last Change: 2007 Feb 05 from time import strftime from debian_bundle.changelog import Changelog, Version @@ -11,9 +11,9 @@ 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" +newVersion = changelog.upstream_version + "-" + changelog.debian_version + "~sargecran.1" -changelog.new_block(package=changelog.package(), +changelog.new_block(package=changelog.package, version=Version(newVersion), distributions='sarge-cran', urgency='low', @@ -27,4 +27,6 @@ changelog.add_change(' * Also replaces r-recommended (= 2.4.0-0sarge2) for smoo changelog.add_change(' earlier backport by Christian Steigies'); changelog.add_change(''); -file(chlg,"w").write(str(changelog)) +f = open(chlg, 'w') +changelog.write_to_open_file(f) +f.close() |