X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tags%2Fpre-dual%2FR%2Flintian.R;fp=tags%2Fpre-dual%2FR%2Flintian.R;h=9aa02fa72e1cbf5b6d3fc8799f77312d9d025fa5;hb=ab9547f1dd3779e34528a7a638ed085d5b9c5e26;hp=0000000000000000000000000000000000000000;hpb=4baac28764128067cb2fd6343321e7e0f522bdfd;p=cran2deb.git diff --git a/tags/pre-dual/R/lintian.R b/tags/pre-dual/R/lintian.R new file mode 100644 index 0000000..9aa02fa --- /dev/null +++ b/tags/pre-dual/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) +} +