[80487] contrib/buildbot/deploy_archives.sh

jmr at macports.org jmr at macports.org
Wed Jul 13 10:32:46 PDT 2011


Revision: 80487
          http://trac.macports.org/changeset/80487
Author:   jmr at macports.org
Date:     2011-07-13 10:32:46 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
buildmaster: check that there are any archives uploaded before trying to process them

Modified Paths:
--------------
    contrib/buildbot/deploy_archives.sh

Modified: contrib/buildbot/deploy_archives.sh
===================================================================
--- contrib/buildbot/deploy_archives.sh	2011-07-13 17:31:44 UTC (rev 80486)
+++ contrib/buildbot/deploy_archives.sh	2011-07-13 17:32:46 UTC (rev 80487)
@@ -20,20 +20,21 @@
     PRIVKEY=""
 fi
 
-
-for archive in ${ULPATH}/*/*; do
-    portname=$(basename $(dirname $archive))
-    aname=$(basename $archive)
-    echo deploying archive: $aname
-    if [[ -n "$PRIVKEY" ]]; then
-        openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ${ULPATH}/${portname}/${aname}.rmd160 ${archive}
+if ls ${ULPATH}/*/* > /dev/null 2>&1 ; then
+    for archive in ${ULPATH}/*/*; do
+        portname=$(basename $(dirname $archive))
+        aname=$(basename $archive)
+        echo deploying archive: $aname
+        if [[ -n "$PRIVKEY" ]]; then
+            openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ${ULPATH}/${portname}/${aname}.rmd160 ${archive}
+        fi
+    done
+    
+    if [[ -n "$DLHOST" ]]; then
+        rsync -av --ignore-existing ${ULPATH}/ ${DLHOST}:${DLPATH}
+    else
+        rsync -av --ignore-existing ${ULPATH}/ ${DLPATH}
     fi
-done
-
-if [[ -n "$DLHOST" ]]; then
-    rsync -av --ignore-existing ${ULPATH}/ ${DLHOST}:${DLPATH}
-else
-    rsync -av --ignore-existing ${ULPATH}/ ${DLPATH}
 fi
 
 # clean up after ourselves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110713/28f26969/attachment.html>


More information about the macports-changes mailing list