I'm using the cascaded hardened profile and while doing an 'emerge info' I noticed that it would probably be hard to tell which profile an end user was using if he/she were using a cascaded one. ls -l /etc/make.profile /etc/make.profile -> /var/cvsroot/gentoo-x86/profiles/hardened/x86 emerge info | head -n2 | tail -n1 Portage 2.0.51_pre9 (x86, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.26-grsec-2.0) As we can see from the display in the place it shows the profile basename we only have 'x86' listed. What may be ideal would be to have emerge option to display everything after ${PORTDIR}/profiles/
def getportageversion(): try: import re profilever = os.path.normpath("///"+os.readlink("/etc/make.profile")) basepath = os.path.normpath("///"+portage.settings["PORTDIR"]+"/profiles") if re.match(basepath,profilever): profilever = profilever[len(basepath)+1:] else: profilever = "!"+profilever except: profilever="unavailable"
Works great. Closing bug for you. Portage 2.0.51_pre12 (hardened/x86, gcc-3.3.4, uclibc-0.9.26-r2, 2.4.26-grsec-2.0) Portage 2.0.51_pre12 (uclibc/hardened/x86, gcc-3.4.1, uclibc-0.9.26-r2, 2.4.26-grsec-2.0)