Ignore:
Timestamp:
03/15/2006 09:50:40 PM (19 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
dbf2c71
Parents:
4bf0fc3
Message:

Added test for tar >1.15, ability to fetch/store packages from/to a local archive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r4bf0fc3 re1edff3  
    721721  DIR=`echo $1 | sed 's@-doc@@;s@-linuxthreads@@;s@-libidn@@;s@-testsuite@@'`
    722722
     723  # If the file exists in the archive copy it to the $BUILDDIR/sources dir
     724  # MD5SUM is assumed to be correct from previous download
     725  if [ ! -z ${SRC_ARCHIVE} ] &&
     726     [   -d ${SRC_ARCHIVE} ] &&
     727     [   -f ${SRC_ARCHIVE}/$2 ]; then
     728    cp ${SRC_ARCHIVE}/$2 .
     729    echo "$2: -- ok"
     730    return
     731  fi
     732
    723733  # Find the md5 sum for this package.
    724734  if [ $2 != MD5SUMS ] ; then
     
    754764    echo `grep "$MD5" MD5SUMS` >> MD5SUMS-$VERSION
    755765  fi
     766
     767  # If we make it this far we should copy the freshly downloaded file
     768  # to the source archive.
     769  if [ ! -z ${SRC_ARCHIVE} ] &&
     770     [   -d ${SRC_ARCHIVE} ] &&
     771     [   -w ${SRC_ARCHIVE} ] &&
     772     [ $2 != MD5SUMS ]; then
     773       echo "Store file:<$2> in package archive"
     774       cp -v $2 ${SRC_ARCHIVE}
     775  fi
     776
    756777}
    757778
Note: See TracChangeset for help on using the changeset viewer.