Changeset 9ef2d77


Ignore:
Timestamp:
04/09/13 14:17:43 (18 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
1f0939e
Parents:
8da8a81
Message:

Setup package listing to auto-detect if a jail is using PKGNG and
use it instead of pkg_info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/scripts/backend/listpkgs.sh

    r0988d23 r9ef2d77  
    3333# Done with error checking, now lets get a package listing 
    3434################################################################### 
    35 chroot "${JAILDIR}" pkg_info 
     35 
     36# Check if we are using pkgng or old-style 
     37if [ -e "${JAILDIR}/usr/local/sbin/pkg-static" ] ; then 
     38  chroot "${JAILDIR}" pkg info 
     39else 
     40  chroot "${JAILDIR}" pkg_info 
     41fi 
Note: See TracChangeset for help on using the changeset viewer.