Changeset 83ebbb5


Ignore:
Timestamp:
Apr 25, 2013 6:34:49 AM (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1
Children:
b1232b5
Parents:
b4350b9
Message:

Add a placeholder for where we will add a new pkg rquery call to skip
re-downloading valid cached files

File:
1 edited

Legend:

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

    r4c06449 r83ebbb5  
    5555  for i in $pkgList 
    5656  do 
    57     if [ -e "${PKG_CACHEDIR}/All/${i}" ] ; then rm ${PKG_CACHEDIR}/All/${i} ; fi 
     57    # Does the package already exist? 
     58    if [ -e "${PKG_CACHEDIR}/All/${i}" ] ; then  
     59        # For now just remove the cached file 
     60        # Once bapt gives us a working rquery string, we can add a check here to skip 
     61        # re-downloading already valid files 
     62        #pName=`echo $i | sed 's|.txz$||g'` 
     63        # Check the sizes 
     64        #eSize=`pkg rquery "%sb" $pName` 
     65        #dSize=`ls -al ` 
     66        rm ${PKG_CACHEDIR}/All/${i} ;  
     67    fi 
    5868    get_file_from_mirrors "${pkgUrl}/All/${i}" "${PKG_CACHEDIR}/All/${i}" 
    5969    if [ $? -ne 0 ] ; then 
Note: See TracChangeset for help on using the changeset viewer.