]> git.donarmstrong.com Git - cran2deb.git/commitdiff
add some output to aid package debugging. after upload, wait (for at most 60 seconds...
authorblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 16 May 2009 10:38:39 +0000 (10:38 +0000)
committerblundellc <blundellc@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Sat, 16 May 2009 10:38:39 +0000 (10:38 +0000)
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/cran2deb@234 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

trunk/R/build.R
trunk/R/debcontrol.R
trunk/R/getrpkg.R

index 157c888738ffb2ada70c6de4a2f54505c74d3456..fead6d8640e03b7d37f5cf330cfda4ea25b2dd8d 100644 (file)
@@ -42,6 +42,18 @@ build <- function(name,extra_deps,force=F) {
             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)
index 34cc6b69f6dc003f4a7c81961f7f63ade3c2d1ea..4b7b4f905bfd8cf478fce2fe4848ce8be944f605 100644 (file)
@@ -166,5 +166,6 @@ generate_control <- function(pkg) {
 
     # 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)
 }
 
index 0c2e48b14aecd274f02aec4a4591dbb850f163ac..b5e990f0bcc856275672fb44e41bff53b8b4456a 100644 (file)
@@ -39,6 +39,7 @@ download_pkg <- function(dir, pkgname) {
         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
@@ -82,6 +83,7 @@ download_pkg <- function(dir, pkgname) {
 
 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