summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-05-02 15:47:50 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-05-02 15:47:50 +0000
commit9222dd698744381adcb40ff8940f432b1d73ae6f (patch)
tree48d1356de56dc2603317d5805a09f86eacd4f56c /app-admin/eselect-gnat
parentBump for 2.14.1 (diff)
downloadgentoo-2-9222dd698744381adcb40ff8940f432b1d73ae6f.tar.gz
gentoo-2-9222dd698744381adcb40ff8940f432b1d73ae6f.tar.bz2
gentoo-2-9222dd698744381adcb40ff8940f432b1d73ae6f.zip
another fix, now to the do_list method
(Portage version: 2.1_pre10-r2)
Diffstat (limited to 'app-admin/eselect-gnat')
-rw-r--r--app-admin/eselect-gnat/ChangeLog4
-rw-r--r--app-admin/eselect-gnat/files/gnat.eselect-0.713
2 files changed, 13 insertions, 4 deletions
diff --git a/app-admin/eselect-gnat/ChangeLog b/app-admin/eselect-gnat/ChangeLog
index a64d766b89d8..73f5a6734562 100644
--- a/app-admin/eselect-gnat/ChangeLog
+++ b/app-admin/eselect-gnat/ChangeLog
@@ -1,9 +1,9 @@
# ChangeLog for app-admin/eselect-gnat
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/ChangeLog,v 1.4 2006/05/02 15:22:19 george Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-gnat/ChangeLog,v 1.5 2006/05/02 15:47:50 george Exp $
02 May 2006; George Shapovalov <george@gentoo.org> files/gnat.eselect-0.7:
- small fix to the do_show method (so that it actually shows libs)
+ small fix to the do_show and do_list methods (so that they actually show libs)
*eselect-gnat-0.7 (02 May 2006)
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