fail('upload failed!')
}
+ # wait for mini-dinstall to get to work
+ upload_success = FALSE
+ for (i in seq(1,12)) {
+ if (file.exists(file.path(pbuilder_results, paste(pkg$srcname, '_', pkg$version, '.orig.tar.gz', sep='')))) {
+ upload_success = TRUE
+ break
+ }
+ Sys.sleep(5)
+ }
+ if (!upload_success) {
+ warn('upload took too long; continuing as normal (some builds may fail temporarily)')
+ }
return(pkg$debversion)
})())
cleanup(dir)
# 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)
}
pkg$archive <- file.path(dir, basename(debfn))
file.copy(debfn,pkg$archive)
pkg$path = file.path(dir, paste(pkg$srcname ,pkg$version ,sep='-'))
+ notice('using an existing debianized source tarball:',debfn)
} else {
# see if we have a local mirror in /srv/R
use_local = FALSE
repack_pkg <- function(pkg) {
# re-pack into a Debian-named archive with a Debian-named directory.
+ notice('repacking into debian source archive.')
debpath = file.path(dirname(pkg$archive)
,paste(pkg$srcname
,pkg$version