X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trunk%2FR%2Fdebcontrol.R;h=743aa0085b7707c39dda92f6139572b571cd0dd7;hb=c27541f543201c6909077bf80b0034df80bc64f2;hp=1cadc7ac03645d670bedaf51afaf648a93bf04df;hpb=30d5367dc1d9ee4a9303f8ba45cf8eba6f3f5621;p=cran2deb.git diff --git a/trunk/R/debcontrol.R b/trunk/R/debcontrol.R index 1cadc7a..743aa00 100644 --- a/trunk/R/debcontrol.R +++ b/trunk/R/debcontrol.R @@ -80,6 +80,10 @@ sysreqs_as_debian <- function(sysreq_text) { sysreq = gsub('(ht|f)tps?://[[:alnum:]!?*"\'(),%$_@.&+/=-]*','',sysreq) # squish out space sysreq = chomp(gsub('[[:space:]]+',' ',sysreq)) + if (nchar(sysreq) == 0) { + notice('part of the SystemRequirement became nothing') + next + } alias <- db_sysreq_override(sysreq) if (is.null(alias)) { error('do not know what to do with SystemRequirement:',sysreq) @@ -149,7 +153,7 @@ generate_control <- function(pkg) { long_descr <- pkg$description[1,'Description'] } - if (length(long_descr) < 1) { + if (length(long_descr) < 1 || long_descr == "") { # bypass lintian extended-description-is-empty for which we care not. long_descr <- paste('The author/maintainer of this package' ,'did not care to enter a longer description.')