if (!is.null(build) && build$success) {
# then something must have changed for us to attempt this
# build
- if (db_latest_build_version(name) == version &&
+ if (build$r_version == version_upstream(version) &&
+ build$deb_epoch == version_epoch(version) &&
build$db_version == db_get_version()) {
return(F)
}
}
control[2,'Depends'] = paste(pkg$depends$bin,collapse=', ')
- # bundles provide virtual packages of their contents
- if (pkg$is_bundle) {
- control[2,'Provides'] = paste(
- lapply(r_bundle_contains(pkg$name)
- ,function(name) return(pkgname_as_debian(paste(name)
- ,repopref=pkg$repo)))
- ,collapse=', ')
- }
+# # bundles provide virtual packages of their contents
+# # unnecessary for now; cran2deb converts R bundles itself
+# if (pkg$is_bundle) {
+# control[2,'Provides'] = paste(
+# lapply(r_bundle_contains(pkg$name)
+# ,function(name) return(pkgname_as_debian(paste(name)
+# ,repopref=pkg$repo)))
+# ,collapse=', ')
+# }
# generate the description
descr = 'GNU R package "'
# Debian policy says 72 char width; indent minimally
write.dcf(control,file=pkg$debfile('control.in'),indent=1,width=72)
- write.dcf(control,indent=1,width=72)
}