Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68585 - duff LICENSE syntax makes repoman traceback
Summary: duff LICENSE syntax makes repoman traceback
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-10-22 12:47 UTC by Ciaran McCreesh
Modified: 2005-07-14 06:58 UTC (History)
1 user (show)

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 Ciaran McCreesh 2004-10-22 12:47:15 UTC
If a developer was to, by some mysterious way which I didn't discover by screwing up (honest...), specify a licence like:

LICENSE="|| ( GPL-1 GPL-2 ))"

with an extra closing paren, repoman will traceback:

RepoMan scours the neighborhood...
Traceback (most recent call last):
  File "/usr/bin/repoman", line 874, in ?
    stats[mytype+".syntax"] += 1
KeyError: 'LICENSE.syntax'

This is with sys-apps/portage-2.0.51-r2.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-10-22 12:49:08 UTC
This bug applies to all variables with DEPEND syntax.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-10-22 18:43:49 UTC
{DEPEND,RDEPEND,PDEPEND}.syntax should all be okay as they have definitions in qahelp. Adding LICENSE.syntax fixed this.

Fixed that and found/fixed another one as well. Try LICENSE=")(".  :)
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 05:47:50 UTC
Fixed on or before 2.0.51.22-r1 
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-07-14 06:58:35 UTC
Looking through the batch of bugs, I'm not sure that some of these are 
actually fixed in stable. Others, the requirements have possibly changed after 
the initial fix was committed. 
 
If you think this bug has been closed incorrectly, please reopen or ask that 
it be reopened.