diff options
author | George Shapovalov <george@gentoo.org> | 2006-05-02 15:47:50 +0000 |
---|---|---|
committer | George Shapovalov <george@gentoo.org> | 2006-05-02 15:47:50 +0000 |
commit | f3872468e529e69a50457c03b099ac2a0383f9ad (patch) | |
tree | 82d5cb180bb9fb2ae00f4b17042e33f10781cda5 /app-admin/eselect-gnat/files | |
parent | Bump for 2.14.1 (diff) | |
download | historical-f3872468e529e69a50457c03b099ac2a0383f9ad.tar.gz historical-f3872468e529e69a50457c03b099ac2a0383f9ad.tar.bz2 historical-f3872468e529e69a50457c03b099ac2a0383f9ad.zip |
another fix, now to the do_list method
Package-Manager: portage-2.1_pre10-r2
Diffstat (limited to 'app-admin/eselect-gnat/files')
-rw-r--r-- | app-admin/eselect-gnat/files/gnat.eselect-0.7 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/app-admin/eselect-gnat/files/gnat.eselect-0.7 b/app-admin/eselect-gnat/files/gnat.eselect-0.7 index 6ab12b723dfc..c61833edc826 100644 --- a/app-admin/eselect-gnat/files/gnat.eselect-0.7 +++ b/app-admin/eselect-gnat/files/gnat.eselect-0.7 @@ -1,10 +1,10 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Id: gnat.eselect-0.7,v 1.2 2006/05/02 15:22:19 george Exp $ +# $Id: gnat.eselect-0.7,v 1.3 2006/05/02 15:47:50 george Exp $ DESCRIPTION="Manage the talled gnat compilers" MAINTAINER="ada@gentoo.org" -SVN_DATE='$Date: 2006/05/02 15:22:19 $' +SVN_DATE='$Date: 2006/05/02 15:47:50 $' VERSION=$(svn_date_to_version "${SVN_DATE}" ) SPECSDIR="/usr/share/gnat/eselect" @@ -205,6 +205,15 @@ do_list() { compilers[${i}]="${compilers[${i}]} $(highlight '*' )" done write_numbered_list "${compilers[@]}" + + # now the libs + libs=( $(find_all_libs) ) + write_list_start "Installed libs:" + for (( i = 0 ; i < ${#libs[@]} ; i = i + 1 )) ; do + [ -f ${SPECSDIR}/${libs[$i]}/${active} ] && \ + libs[${i}]="${libs[${i}]} $(highlight '*' )" + done + write_numbered_list "${libs[@]}" else write_kv_list_entry "(none found)" "" fi |