Changeset 0e9e965


Ignore:
Timestamp:
02/06/14 12:57:24 (18 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2
Children:
742e7df, 6f06854
Parents:
446ac16
Message:

Add another failsafe in case pkgng database is locked during concurrent builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager/pbi-manager

    rb23814c r0e9e965  
    16711671        if [ -n "$PBI_PKGNGBUILD" -a -z "$PBI_AB_NOPKGBUILD" ] ; then 
    16721672                testPkgVer="`pkg-static rquery '%v' ${PBI_MAKEPORT}`" 
     1673                if [ -z "$testPkgVer" ] ; then 
     1674                        # Try one more time, just in case PKGNG was busy, silly database locking 
     1675                        sleepRand="`jot -r 1 1 90`" 
     1676                        sleep $sleepRand 
     1677                        testPkgVer="`pkg-static rquery '%v' ${PBI_MAKEPORT}`" 
     1678                fi 
    16731679                if [ -n "$testPkgVer" ] ; then 
    16741680                        PBI_PROGVERSION="$testPkgVer" 
Note: See TracChangeset for help on using the changeset viewer.