Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109591 - 'usage' function of portageq is broken
Summary: 'usage' function of portageq is broken
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-10-17 10:26 UTC by Emanuele Giaquinta (RETIRED)
Modified: 2005-12-17 02:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele Giaquinta (RETIRED) gentoo-dev 2005-10-17 10:26:29 UTC
The patch below to portageq is needed cause 'usage' gets called with one
argument (the empty list), instead of zero.

--- portageq    2005-10-08 12:22:31.000000000 +0200
+++ portageq    2005-10-17 19:12:05.000000000 +0200
@@ -245,7 +245,7 @@
    cmd = sys.argv[1]
    try:
        function = globals()[cmd]
-       function(sys.argv[2:])
+       function(sys.argv[2:len(sys.argv)])
    except KeyError:
        usage()
        sys.exit()
Comment 1 Emanuele Giaquinta (RETIRED) gentoo-dev 2005-11-15 10:37:31 UTC
closing, as it is fixed in svn.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-12-14 04:27:47 UTC
Not yet released. 
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-12-17 02:53:29 UTC
Released in 2.1_pre1.