From e2fc063fb0b05d4c4d4784e4a2d595f7ccd79162 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 9 May 2013 13:08:53 -0700 Subject: [PATCH] ${R:Depends} isn't a build dependency, its a binary dependency --- trunk/R/debcontrol.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/R/debcontrol.R b/trunk/R/debcontrol.R index 68261f6..76c7e5a 100644 --- a/trunk/R/debcontrol.R +++ b/trunk/R/debcontrol.R @@ -14,6 +14,8 @@ get_dependencies <- function(pkg,extra_deps,verbose=TRUE) { # add the command line dependencies depends$bin = c(extra_deps$deb,depends$bin) depends$build = c(extra_deps$deb,depends$build) + ## add R:Depends + depends$bin = c(depends$bin,'${R:Depends}'); # add the system requirements if ('SystemRequirements' %in% colnames(pkg$description)) { sysreq <- sysreqs_as_debian(pkg$description[1,'SystemRequirements'],verbose=verbose) @@ -49,7 +51,7 @@ get_dependencies <- function(pkg,extra_deps,verbose=TRUE) { depends <- lapply(depends,unique) # append the Debian dependencies - depends$build=c(depends$build,'debhelper (>> 4.1.0)','cdbs','${R:Depends}') + depends$build=c(depends$build,'debhelper (>> 4.1.0)','cdbs') if (file.exists(file.path(patch_dir, pkg$name))) { depends$build <- c(depends$build,'dpatch') } -- 2.39.2