diff options
author | dteske <dteske@FreeBSD.org> | 2013-07-05 01:28:30 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-07-05 01:28:30 +0000 |
commit | 9a0edc7cfe6a0a5276d889d30832ccc17a474be4 (patch) | |
tree | 7b85fe768844a702ac827823b2b9eca5af0f2cb0 /usr.sbin | |
parent | 38518412ebadc7654034cbf9d9929374f86a0ce2 (diff) | |
download | FreeBSD-src-9a0edc7cfe6a0a5276d889d30832ccc17a474be4.zip FreeBSD-src-9a0edc7cfe6a0a5276d889d30832ccc17a474be4.tar.gz |
Comments.
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/bsdconfig/share/packages/packages.subr | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/share/packages/packages.subr b/usr.sbin/bsdconfig/share/packages/packages.subr index 388fd24..e526c19 100755 --- a/usr.sbin/bsdconfig/share/packages/packages.subr +++ b/usr.sbin/bsdconfig/share/packages/packages.subr @@ -48,8 +48,11 @@ f_include_lang $BSDCFG_LIBE/include/messages.subr ############################################################ GLOBALS -PACKAGE_CATEGORIES= -SELECTED_PACKAGES= +# +# Variables used to track runtime states +# +PACKAGE_CATEGORIES= # List of package categories parsed from INDEX +SELECTED_PACKAGES= # Packages selected by user in [X]dialog(1) interface # # Options @@ -157,6 +160,15 @@ f_package_deselect() f_package_detect_installed() { local installed package varpkg + # + # XXX KLUDGE ALERT! This makes evil assumptions about how XXX + # packages register themselves and should *really* be done with + # `pkg_info -e <name>' except that this is too slow for an + # item check routine.. :-( + # + # NOTE: When transitioning to pkgng, make a single fork to `pkg' to + # produce a list of all installed packages and parse _that_ + # installed=$( find -s /var/db/pkg -mindepth 1 -maxdepth 1 -type d | sed -e 's:/var/db/pkg/::' ) for package in $installed; do |