]> git.donarmstrong.com Git - cran2deb.git/blobdiff - tags/pre-dual/R/lintian.R
reprepro version before the massacre
[cran2deb.git] / tags / pre-dual / R / lintian.R
diff --git a/tags/pre-dual/R/lintian.R b/tags/pre-dual/R/lintian.R
new file mode 100644 (file)
index 0000000..9aa02fa
--- /dev/null
@@ -0,0 +1,14 @@
+generate_lintian <- function(pkg) {
+    lintian_src = file.path(lintian_dir, pkg$name)
+    if (!file.exists(lintian_src)) {
+        notice('no lintian overrides ', lintian_src)
+        return()
+    }
+
+    # copy the lintian file
+    notice('including lintian file', lintian_src)
+    lintian_tgt <- pkg$debfile(paste(pkg$debname, "lintian-overrides", sep="."))
+    file.copy(lintian_src, lintian_tgt)
+    invisible(NULL)
+}
+