X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trunk%2FR%2Fbuild.R;h=3855a27d8251a88bc580a50213ea7adaea61ef3b;hb=46f4b98439c056b91221dc24c28437c70fd6466a;hp=74479fb9173c78db5c0f6b5033192a89fc76e31a;hpb=f0649c2204a798a5ebc62859b09b3678e77d9fac;p=cran2deb.git diff --git a/trunk/R/build.R b/trunk/R/build.R index 74479fb..3855a27 100644 --- a/trunk/R/build.R +++ b/trunk/R/build.R @@ -44,14 +44,14 @@ build <- function(name,extra_deps,force=F) { # wait for mini-dinstall to get to work upload_success = FALSE - for (i in seq(1,60)) { - if (file.exists(file.path(dinstall_archive,'testing','source',paste(pkg$srcname, '_', pkg$version, '.orig.tar.gz', sep='')))) { + for (i in seq(1,12)) { + if (file.exists(file.path(dinstall_archive,'testing',paste(pkg$srcname, '_', pkg$version, '.orig.tar.gz', sep='')))) { upload_success = TRUE break } - warn(i,'/60: does not exist',file.path(dinstall_archive,which_system,'testing','source',paste(pkg$srcname, '_', pkg$version, '.orig.tar.gz', sep=''))) + warn(i,'/12: does not exist',file.path(dinstall_archive,'testing',paste(pkg$srcname, '_', pkg$version, '.orig.tar.gz', sep=''))) - Sys.sleep(1) + Sys.sleep(5) } if (!upload_success) { warn('upload took too long; continuing as normal (some builds may fail temporarily)')