Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49059 - portage.py: !!! doebuild should list the valid commands on error
Summary: portage.py: !!! doebuild should list the valid commands on error
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-04-26 12:16 UTC by Doug Weimer
Modified: 2004-10-22 08:48 UTC (History)
0 users

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


Attachments
Adds more verbose error reporting to doebuild. (validcommand-error.patch,1.05 KB, patch)
2004-04-26 12:20 UTC, Doug Weimer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Weimer 2004-04-26 12:16:10 UTC
When executing 'ebuild blah.ebuild badcommand' the error reported should list the valid commands that are available.

Reproducible: Always
Steps to Reproduce:
1. Run 'ebuild /usr/portage/sys-apps/dcron/dcron-2.9.ebuild upack'

Actual Results:  
!!! doebuild: Please specify a valid command.

Expected Results:  
A more verbose error including the invalid command entered and the currently
available commands.

This might be a personal issue, but it seems that error messages should provide
fairly specific reasons for the errors that have occurred.
Comment 1 Doug Weimer 2004-04-26 12:20:45 UTC
Created attachment 30104 [details, diff]
Adds more verbose error reporting to doebuild.

This patch applies against /usr/lib/portage/pym/portage.py from
sys-apps/portage-2.0.50-r6. The new error message with this patch is:

ebuild ez-ipupdate-3.0.11_beta8-r1.ebuild upack
!!! doebuild: 'upack' is not one of the following valid commands:
!!! clean      compile	  config     depend	digest	   fetch
!!! help       install	  manifest   merge	package    postinst
!!! postrm     preinst	  prerm      qmerge	rpm	   setup
!!! touch      unmerge	  unpack
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:10 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2