X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trunk%2FR%2Fbuild.R;h=157c888738ffb2ada70c6de4a2f54505c74d3456;hb=5c4a83b24dce711003452dfa391c7fe6fd48dc24;hp=5fd572d92cb32e7c0a0bc987c9870f02c1a8f0c8;hpb=344c191aa0db859001e5b82eeddc00c027a7b320;p=cran2deb.git diff --git a/trunk/R/build.R b/trunk/R/build.R index 5fd572d..157c888 100644 --- a/trunk/R/build.R +++ b/trunk/R/build.R @@ -20,6 +20,10 @@ build <- function(name,extra_deps,force=F) { return(NULL) } + if (name %in% db_blacklist_packages()) { + fail('package',name,'is blacklisted. consult database for reason.') + } + pkg <- prepare_new_debian(prepare_pkg(dir,name),extra_deps) if (pkg$debversion != version) { fail('expected Debian version',version,'not equal to actual version',pkg$debversion) @@ -80,12 +84,6 @@ needs_build <- function(name,version) { return(F) } - # XXX: what about building newer versions of Debian packages? - if (debname %in% debian_pkgs) { - notice(srcname,' exists in Debian (perhaps a different version)') - return(F) - } - if (build$r_version != version_upstream(version)) { notice('rebuilding',name,': new upstream version',build$r_version,'(old) vs',version_upstream(version),'(new)') }