From 9f9d3c718f19c1bc9d800c4d75a6f4febc53f830 Mon Sep 17 00:00:00 2001 From: blundellc Date: Sun, 1 Feb 2009 11:02:18 +0000 Subject: [PATCH] make marking for complete rebuild a manual trigger, not automatic git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@183 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- trunk/R/db.R | 10 +++++----- trunk/exec/db_release | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100755 trunk/exec/db_release diff --git a/trunk/R/db.R b/trunk/R/db.R index 82fa1d4..4c9434e 100644 --- a/trunk/R/db.R +++ b/trunk/R/db.R @@ -141,7 +141,7 @@ db_add_sysreq_override <- function(pattern,depend_alias) { ,' ',db_quote(tolower(depend_alias)) ,',',db_quote(tolower(pattern)) ,')')) - db_stop(con,TRUE) + db_stop(con) } db_sysreq_overrides <- function() { @@ -170,7 +170,7 @@ db_add_depends <- function(depend_alias,debian_pkg,build=F) { ,',',as.integer(build) ,',',db_quote(tolower(debian_pkg)) ,')')) - db_stop(con,TRUE) + db_stop(con) } db_depends <- function() { @@ -199,7 +199,7 @@ db_add_forced_depends <- function(r_name, depend_alias) { dbGetQuery(con, paste('INSERT OR REPLACE INTO forced_depends (r_name, depend_alias)' ,'VALUES (',db_quote(r_name),',',db_quote(depend_alias),')')) - db_stop(con,TRUE) + db_stop(con) } db_forced_depends <- function() { @@ -233,7 +233,7 @@ db_add_license_override <- function(name,accept) { ,' ',db_quote(tolower(name)) ,',',as.integer(accept) ,')')) - db_stop(con,TRUE) + db_stop(con) } db_license_override_hash <- function(license_sha1) { @@ -270,7 +270,7 @@ db_add_license_hash <- function(name,license_sha1) { ,' ',db_quote(tolower(name)) ,',',db_quote(tolower(license_sha1)) ,')')) - db_stop(con,TRUE) + db_stop(con) } diff --git a/trunk/exec/db_release b/trunk/exec/db_release new file mode 100755 index 0000000..6a4dcd2 --- /dev/null +++ b/trunk/exec/db_release @@ -0,0 +1,9 @@ +#!/usr/bin/env r +## DOC: cran2deb db_release +## DOC: make note of a substantial update of the database. causes all packages to rbe marked for ebuild. +## DOC: + +suppressPackageStartupMessages(library(cran2deb)) + +db_stop(db_start(),TRUE) + -- 2.39.2