From: Don Armstrong Date: Tue, 26 Feb 2013 02:20:14 +0000 (-0800) Subject: the binary should always have the same name as the source package X-Git-Url: https://git.donarmstrong.com/?p=cran2deb.git;a=commitdiff_plain;h=834b0ed4404a9bae22bc640c33b2abf6489e4481 the binary should always have the same name as the source package --- diff --git a/trunk/R/debiannaming.R b/trunk/R/debiannaming.R index 8d11be3..724bca3 100644 --- a/trunk/R/debiannaming.R +++ b/trunk/R/debiannaming.R @@ -32,14 +32,15 @@ pkgname_as_debian <- function(name,repopref=NULL,version=NULL,binary=T,build=F) # XXX: data.frame rownames are unique, so always override repopref for # now. debname = tolower(name) - if (binary) { +### The source name should always be the same as the binary name +### if (binary) { if (name %in% rownames(available)) { repopref <- tolower(repourl_as_debian(available[name,'Repository'])) } else if (is.null(repopref)) { repopref <- 'unknown' } debname = paste('r',repopref,debname,sep='-') - } +### } } if (!is.null(version) && length(version) > 1) { debname = paste(debname,' (',version,')',sep='')