]> git.donarmstrong.com Git - cran2deb.git/commitdiff
work around lintian's extended-description-is-empty message.
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:28:21 +0000 (13:28 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 13 Sep 2008 13:28:21 +0000 (13:28 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@137 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/trunk/R/debcontrol.R

index b5ea3566f3b608b4b1e8f91954d4777ba13382ed..63d0bf0d880953f024ab16b16b935869f49bccfe 100644 (file)
@@ -145,6 +145,13 @@ generate_control <- function(pkg) {
     } else {
         long_descr <- pkg$description[1,'Description']
     }
+
+    if (length(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.')
+    }
+
     # using \n\n.\n\n is not very nice, but is necessary to make sure
     # the longer description does not begin on the synopsis line --- R's
     # write.dcf does not appear to have a nicer way of doing this.