Changeset c15e380


Ignore:
Timestamp:
11/27/13 12:24:47 (11 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
8680865
Parents:
8e65899
Message:

When doing package building, get the package name from the pkg rquery command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager10/pbi-manager

    r8e65899 rc15e380  
    76347634{ 
    76357635  local _lPortRaw="$1" 
     7636  local pkgName="" 
    76367637 
    76377638  # Remove any trailing '/' 
     
    76457646  echo "Checking port: $_lPort" 
    76467647 
     7648  if [ -n "$PBI_PKGNGBUILD" ] ; then 
     7649     pkgName=`pkg-static rquery '%n' $_lPortRaw` 
     7650  else 
     7651     pkgName=`make -V PKGNAME -C $_lPort PORTSDIR=${PORTSDIR}` 
     7652  fi 
     7653 
    76477654  # Make sure this port isn't already loaded 
    7648   local pkgName=`make -V PKGNAME -C $_lPort PORTSDIR=${PORTSDIR}` 
    76497655  pkg info -e ${pkgName} 
    76507656  if [ $? -eq 0 ] ; then return ; fi 
Note: See TracChangeset for help on using the changeset viewer.