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)
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)')
}
,',UNIQUE(package,system,r_version,deb_epoch,deb_revision,db_version)'
,')'))
}
+ if (!dbExistsTable(con,'blacklist_packages')) {
+ dbGetQuery(con,paste('CREATE TABLE blacklist_packages ('
+ ,'package TEXT PRIMARY KEY NOT NULL '
+ ,'reason TEXT NOT NULL '
+ ,')'))
+ }
return(con)
}
return(packages)
}
+db_blacklist_packages <- function() {
+ con <- db_start()
+ packages <- dbGetQuery(con,'SELECT packages from blacklist_packages')$package
+ db_stop(con)
+ return(packages)
+}