New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 80487


Ignore:
Timestamp:
07/13/11 10:32:46 (4 years ago)
Author:
jmr@…
Message:

buildmaster: check that there are any archives uploaded before trying to process them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/buildbot/deploy_archives.sh

    r80470 r80487  
    2121fi 
    2222 
    23  
    24 for archive in ${ULPATH}/*/*; do 
    25     portname=$(basename $(dirname $archive)) 
    26     aname=$(basename $archive) 
    27     echo deploying archive: $aname 
    28     if [[ -n "$PRIVKEY" ]]; then 
    29         openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ${ULPATH}/${portname}/${aname}.rmd160 ${archive} 
     23if ls ${ULPATH}/*/* > /dev/null 2>&1 ; then 
     24    for archive in ${ULPATH}/*/*; do 
     25        portname=$(basename $(dirname $archive)) 
     26        aname=$(basename $archive) 
     27        echo deploying archive: $aname 
     28        if [[ -n "$PRIVKEY" ]]; then 
     29            openssl dgst -ripemd160 -sign "${PRIVKEY}" -out ${ULPATH}/${portname}/${aname}.rmd160 ${archive} 
     30        fi 
     31    done 
     32     
     33    if [[ -n "$DLHOST" ]]; then 
     34        rsync -av --ignore-existing ${ULPATH}/ ${DLHOST}:${DLPATH} 
     35    else 
     36        rsync -av --ignore-existing ${ULPATH}/ ${DLPATH} 
    3037    fi 
    31 done 
    32  
    33 if [[ -n "$DLHOST" ]]; then 
    34     rsync -av --ignore-existing ${ULPATH}/ ${DLHOST}:${DLPATH} 
    35 else 
    36     rsync -av --ignore-existing ${ULPATH}/ ${DLPATH} 
    3738fi 
    3839 
Note: See TracChangeset for help on using the changeset viewer.