Changeset e5a54a6


Ignore:
Timestamp:
08/08/13 06:44:30 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
94a335c
Parents:
3f810665
Message:

Don't keep re-downloading packages which we have a local copy for

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/libsh/functions.sh

    rf967699 re5a54a6  
    5151  pkgUrl="`grep '^packagesite:' /usr/local/etc/pkg.conf | awk '{print $2}'`" 
    5252 
    53   PKGREL=`uname -r | cut -d '-' -f 1-2` 
    54  
    55  
    5653  if [ ! -d "$PKG_CACHEDIR/All" ] ; then 
    5754     mkdir -p ${PKG_CACHEDIR}/All 
     
    6259    # Does the package already exist? 
    6360    if [ -e "${PKG_CACHEDIR}/All/${i}" ] ; then  
    64         # For now just remove the cached file 
    6561        # Once bapt gives us a working rquery string, we can add a check here to skip 
    6662        # re-downloading already valid files 
     
    6965        #eSize=`pkg rquery "%sb" $pName` 
    7066        #dSize=`ls -al ` 
    71         rm ${PKG_CACHEDIR}/All/${i} ;  
     67        #rm ${PKG_CACHEDIR}/All/${i} ;  
    7268    fi 
    7369    get_file "${pkgUrl}/All/${i}" "${PKG_CACHEDIR}/All/${i}" 
Note: See TracChangeset for help on using the changeset viewer.