]> git.donarmstrong.com Git - cran2deb.git/commit
build: automatically version package builds, record results in build log, record...
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:22:28 +0000 (13:22 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:22:28 +0000 (13:22 +0000)
commitf4ed1d083e094aac3220fc95f75d2c983d884c61
tree151e184fe352992ec4a270643e8c3c509edd2155
parent6677cee86ce8a10eb54b84e749873a19e6f795a1
build: automatically version package builds, record results in build log, record all cran2deb generated messages in log.

automatic version works as follows:
- if there is no previous build in the database, use R version with
epoch=0 (will probably change to base_epoch in the DB), revision=1.
- if there is a previous build, and the R version of that build is the
same as the R version of the to-be-built, then increment the revision
by one.
- otherwise use the previous epoch and revision=1 with the new R version.

TODO: grab the output from system()s into the log too.
TODO: whilst version changes make sense, the Debian revision number
probably creeps up a little bit too quickly. No point in versioning
failed builds or repeat builds where nothing changed.

git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@91 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
15 files changed:
pkg/trunk/R/build.R
pkg/trunk/R/db.R
pkg/trunk/R/debcontrol.R
pkg/trunk/R/debiannaming.R
pkg/trunk/R/debianpkg.R
pkg/trunk/R/getrpkg.R
pkg/trunk/R/license.R
pkg/trunk/R/log.R [new file with mode: 0644]
pkg/trunk/R/rdep.R
pkg/trunk/R/util.R
pkg/trunk/R/version.R
pkg/trunk/exec/autobuild
pkg/trunk/exec/build
pkg/trunk/exec/depend
pkg/trunk/exec/license