Changeset 6180a78


Ignore:
Timestamp:
01/08/14 07:57:07 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
35000f6, 4f9718b
Parents:
a469e71
Message:

Add a new 'pkgdeps' target to pc-metapkgmanager, it will allow listing
the pkgng packages that a meta-package will install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-metapkgmanager/pc-metapkgmanager

    r7004a51 r6180a78  
    5151    
    5252Options: 
    53   add pkg1,pkg2          -- Add the specified list of meta-packages 
    54   del pkg1,pkg2          -- Delete the specified list of meta-packages 
     53  add mpkg1,mpkg2        -- Add the specified list of meta-packages 
     54  del mpkg1,mpkg2        -- Delete the specified list of meta-packages 
    5555  list                   -- List the available meta-packages 
    5656  list-installed         -- Only list the installed meta-packages 
    57   status <pkg>           -- List the status of the specified meta-packages 
     57  pkgdeps <mpkg>         -- List package dependancies for the specified meta-package 
     58  status <mpkg>          -- List the status of the specified meta-packages 
    5859  --pkgset <pkgset>      -- Change default pkgset we are using 
    5960 
     
    198199} 
    199200 
     201# List the package deps for the specified meta-pkg 
     202list_pkgdeps() { 
     203        if [ -z "$1" ] ; then exit_err "No meta-pkg specified!" ; fi 
     204        if [ ! -e "${MPDIR}/${1}/ports-list" ] ; then exit_err "No such meta-pkg: $1" ; fi 
     205        cat ${MPDIR}/$1/ports-list | cut -d ':' -f 1 
     206        exit 0 
     207} 
    200208 
    201209# Function to list available metapkgs 
     
    396404while [ $# -gt 0 ]; do 
    397405  case "$1" in 
     406       pkgdeps) list_pkgdeps "$2" ; exit 0 ;; 
    398407          list) list_metapkgs ; exit 0 ;; 
    399408list-installed) list_installed_metapkgs ; exit 0 ;; 
Note: See TracChangeset for help on using the changeset viewer.