Changeset f052849


Ignore:
Timestamp:
11/18/13 15:21:17 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
9.2-release
Children:
46f75d6
Parents:
8506d7a2
Message:

Backport pkg cleanup to 9.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/xtrafiles/local/share/pcbsd/bin/pkg

    r8506d7a2 rf052849  
    3939   op="$1" 
    4040    
    41    # Make sure we insert some flags we need 
    42    while [ $# -gt 0 ]; do 
    43      if [ $count -gt 0 ] ; then 
    44         # If we are already using -n, we can skip downloading anything 
    45         if [ "$1" = "-n" ] ; then 
    46            pkg $fullopts 
    47            exit $? 
    48         fi 
    49         flags="$flags $1" 
    50      else 
    51         flags="-U -n" 
    52      fi 
    53      count=`expr $count + 1` 
    54      shift 
    55    done 
    56  
    57    # Lets pre-download all packages 
    58    download_cache_packages "pkg $op $flags" 
    59  
    60    # Lets check for any conflicts doing this install 
    61    check_pkg_conflicts "${op} -FUy $flags" 
    62    if [ $? -ne 0 ] ; then 
    63         exit 1 
    64    fi 
    65  
    6641   # Time to run pkgng and let it do its thing 
    67    pkg $fullopts  
     42   pkg-static $fullopts 
    6843   result=$? 
    6944 
Note: See TracChangeset for help on using the changeset viewer.