From: Mike Frysinger Date: Sat, 10 Dec 2005 20:02:15 +0000 (-0000) Subject: add a -v (verbose) option to envvar for easily generating output for use in bash... X-Git-Tag: v2.1_pre1~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b500f559f8b186c6018b68299de2c8089f5a177;p=portage.git add a -v (verbose) option to envvar for easily generating output for use in bash scripts svn path=/main/trunk/; revision=2359 --- diff --git a/bin/portageq b/bin/portageq index f93ba7dea..9ed78b337 100755 --- a/bin/portageq +++ b/bin/portageq @@ -194,8 +194,16 @@ def envvar(argv): Returns a specific environment variable as exists prior to ebuild.sh. Similar to: emerge --verbose --info | egrep '^=' """ + if (argv[0] == "-v"): + verbose=1 + argv=argv[1:] + else: + verbose=0 for arg in argv: - print portage.settings[arg] + if verbose: + print arg +"='"+ portage.settings[arg] +"'" + else: + print portage.settings[arg] #-----------------------------------------------------------------------------