Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] eselect r397 - trunk/modules
Date: Wed, 08 Apr 2009 04:58:17
Message-Id: E1LrPra-0005EF-QT@stork.gentoo.org
1 Author: darkside
2 Date: 2009-04-08 04:58:14 +0000 (Wed, 08 Apr 2009)
3 New Revision: 397
4
5 Modified:
6 trunk/modules/profile.eselect
7 Log:
8 Allow parent profiles to be selectable, patch by Thomas Bellman in bug 248470
9
10 Modified: trunk/modules/profile.eselect
11 ===================================================================
12 --- trunk/modules/profile.eselect 2009-03-24 21:09:53 UTC (rev 396)
13 +++ trunk/modules/profile.eselect 2009-04-08 04:58:14 UTC (rev 397)
14 @@ -47,7 +47,7 @@
15 [[ -z "${arch}" && ${2} != "--force" ]] && return 1
16
17 # do a reverse lookup and find the arch associated with ${target}
18 - parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}.*$|\1|p" \
19 + parch=$(sed -n -e "s|^\([[:alnum:]]\+\)[[:space:]].*${target}[[:space:]].*$|\1|p" \
20 ${ROOT}/${portdir}/profiles/profiles.desc)
21
22 if [[ ${arch} != ${parch} && ${2} != "--force" ]] ; then