Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196537 - portage-2.1.3.15 portageq owners /path/file tracebacks
Summary: portage-2.1.3.15 portageq owners /path/file tracebacks
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 194041
  Show dependency tree
 
Reported: 2007-10-20 15:55 UTC by Duncan
Modified: 2007-10-23 17:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
exit gracefully if <root> is not a directory (validate_root.patch,1.15 KB, patch)
2007-10-21 06:22 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan 2007-10-20 15:55:29 UTC
Right after reading the changelog and merging the new portage, I try the new portageq owners call: traceback!

$portageq owners /bin/bash
Traceback (most recent call last): [snipped]

My mistake is likely obvious to you: I forgot the <root> parameter.  However, a traceback isn't very friendly.  Couldn't the root parameter default to the standard / if not given?  If not, a suitable error message in English could be useful. =8^)

Duncan
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-10-20 16:44:59 UTC
(In reply to comment #0)
> Couldn't the root parameter default to the
> standard / if not given?  If not, a suitable error message in English could be
> useful. =8^)

I'd rather not guess which parameter is missing (as this would apply to other actions as well).
Comment 2 Zac Medico gentoo-dev 2007-10-21 06:22:27 UTC
Created attachment 134008 [details, diff]
exit gracefully if <root> is not a directory

One problem with making the initial <root> parameter optional is that some of the actions (such as owners) accept a variable number of parameters, so it leads to ambiguity as to whether the initial parameter is actually intended to be <root> or something else.
Comment 3 Zac Medico gentoo-dev 2007-10-23 17:28:35 UTC
This has been released in 2.1.3.16.