Changeset 4ceb51a


Ignore:
Timestamp:
11/18/13 15:20:48 (21 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2, releng/10.2
Children:
4f9718b, e1a11d4
Parents:
565a343
Message:

Cleanup pkg wrapper for CLI usage

File:
1 edited

Legend:

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

    r565a343 r4ceb51a  
    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.