]> git.donarmstrong.com Git - cran2deb.git/blobdiff - trunk/R/debcontrol.R
update sysreq, aliases, and forces from db.
[cran2deb.git] / trunk / R / debcontrol.R
index 915ab25b1f6fe717277dec1fde9957a51d869383..a6a4ff43448485883f93cf9a9ef442c6d878ddd4 100644 (file)
@@ -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)
@@ -117,7 +121,7 @@ generate_control <- function(pkg) {
     control[1,'Priority'] = 'optional'
     control[1,'Maintainer'] = maintainer
     control[1,'Build-Depends'] = paste(pkg$depends$build,collapse=', ')
-    control[1,'Standards-Version'] = '3.8.1'
+    control[1,'Standards-Version'] = '3.8.2'
 
     control[2,'Package'] = pkg$debname
     control[2,'Architecture'] = 'all'