diff options
author | Alec Warner <antarus@gentoo.org> | 2006-04-23 23:02:11 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2006-04-23 23:02:11 +0000 |
commit | c2bc3f92b572fbb7c64579093a266c88948361c0 (patch) | |
tree | f66fbcd80dace94837359d913ebf405f69053b45 | |
parent | 724f0720ab42ff488e93a26ae765dafc13cd0986 (diff) | |
download | portage-c2bc3f92b572fbb7c64579093a266c88948361c0.tar.gz portage-c2bc3f92b572fbb7c64579093a266c88948361c0.tar.bz2 portage-c2bc3f92b572fbb7c64579093a266c88948361c0.zip |
Minor emerge -V/--info fixes thanks to iggy, use portage_const PROFILE_PATH
svn path=/main/trunk/; revision=3203
-rwxr-xr-x | bin/emerge | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/emerge b/bin/emerge index cb1e2d9e6..13b99bdcd 100755 --- a/bin/emerge +++ b/bin/emerge @@ -21,7 +21,7 @@ from output import * import portage_util import portage_locks import portage_exception - +from portage_const import PROFILE_PATH spinner_msgs = ["Gentoo Rocks ("+os.uname()[0]+")", "Thank you for using Gentoo. :)", @@ -565,16 +565,14 @@ def getgccversion(): def getportageversion(): try: import re - profilever = os.path.normpath("///"+os.readlink("/etc/make.profile")) + profilever = os.path.normpath("///"+os.readlink(PROFILE_PATH)) basepath = os.path.normpath("///"+portage.settings["PORTDIR"]+"/profiles") if re.match(basepath,profilever): profilever = profilever[len(basepath)+1:] else: profilever = "!"+profilever del basepath - except SystemExit, e: - raise # Needed else can't exit - except: + except (OSError,IOError): profilever="unavailable" libcver=[] libclist = portage.vardbapi(portage.root).match("virtual/libc") @@ -1442,7 +1440,7 @@ class depgraph: return myk - def display(self,mylist,verbosity=("--quiet" in myopts and 1 or "--verbose" in myopts and 3 or 2)): + def display(self,mylist,verbosity=("--quiet" in myopts and 1 or "--verbose" in myopts and 3 or 2 )): changelogs=[] p=[] totalsize=0 |