summaryrefslogtreecommitdiffstats
path: root/bin/portageq
diff options
context:
space:
mode:
Diffstat (limited to 'bin/portageq')
-rwxr-xr-xbin/portageq10
1 files changed, 9 insertions, 1 deletions
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 '^<variable>='
"""
+ 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]
#-----------------------------------------------------------------------------