Summary: | portageq envvar without arguments gives a stacktrace | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | High | ||
Version: | 2.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 115839 |
Description
Petteri Räty (RETIRED)
2006-01-07 08:50:53 UTC
Not sure that it should print anything if no argv How about --- /usr/bin/portageq.orig 2006-01-07 17:01:40.000000000 +0000 +++ /usr/bin/portageq 2006-01-07 17:01:50.000000000 +0000 @@ -194,7 +194,8 @@ Returns a specific environment variable as exists prior to ebuild.sh. Similar to: emerge --verbose --info | egrep '^<variable>=' """ - print portage.settings[argv[0]] + if len(argv): + print portage.settings[argv[0]] #----------------------------------------------------------------------------- or + if len(argv): + print portage.settings[argv[0]] + else: + print envvar.__doc__ insvn. pukes if no arg is supplied Released in 2.1_pre4. |