X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=branch%2Fsplit_build%2FR%2Flintian.R;fp=branch%2Fsplit_build%2FR%2Flintian.R;h=9aa02fa72e1cbf5b6d3fc8799f77312d9d025fa5;hb=42bff07893104a11db95c8d65fe518a336463351;hp=0000000000000000000000000000000000000000;hpb=f0817a2fbc3df0f5daad0a9e1a11d9f295218c0a;p=cran2deb.git diff --git a/branch/split_build/R/lintian.R b/branch/split_build/R/lintian.R new file mode 100644 index 0000000..9aa02fa --- /dev/null +++ b/branch/split_build/R/lintian.R @@ -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) +} +