]> git.donarmstrong.com Git - cran2deb.git/blobdiff - branch/double_build/exec/db_release
initial commit of build all-at-once code.
[cran2deb.git] / branch / double_build / exec / db_release
diff --git a/branch/double_build/exec/db_release b/branch/double_build/exec/db_release
new file mode 100755 (executable)
index 0000000..cc6d59d
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/env r
+## DOC: cran2deb db_release
+## DOC:     make note of a substantial update of the database. causes all packages to be marked for ebuild.
+## DOC:
+
+suppressPackageStartupMessages(library(cran2deb))
+
+con <- db_start()
+notice('old db version:',db_cur_version(con))
+db_stop(con,TRUE)
+con <- db_start()
+notice('new db version:',db_cur_version(con))
+db_stop(con)