Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313295 - >=app-portage/gentoolkit-0.3.0_rc10: cpv.py errors on prefix specific CPV
Summary: >=app-portage/gentoolkit-0.3.0_rc10: cpv.py errors on prefix specific CPV
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
: 323553 330037 336673 (view as bug list)
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2010-04-05 20:05 UTC by Paul Varner (RETIRED)
Modified: 2010-11-24 19:01 UTC (History)
6 users (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 Paul Varner (RETIRED) gentoo-dev 2010-04-05 20:05:13 UTC
In gentoolkit-0.3.0_rc10, additional checks were added for a valid CPV.  Unfortunately, the checks fail for the prefix specific CPV values.  Example:

imac ~ $ equery --debug list -p app-admin/eselect-boost
 * Searching for eselectboost in app-admin ...
Traceback (most recent call last):
  File "/Users/pvarner/Library/Gentoo/usr/bin/equery", line 38, in <module>
    equery.main()
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/equery/__init__.py", line 345, in main
    loaded_module.main(module_args)
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/equery/list_.py", line 196, in main
    if not 'P' in pkgstr.location:
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/package.py", line 435, in location
    self._location = self.format_package_location()
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/package.py", line 482, in format_package_location
    if self.pkg.is_installed():
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/package.py", line 359, in is_installed
    return self.dblink.exists()
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/package.py", line 123, in dblink
    self.category,
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/cpv.py", line 75, in category
    self._set_cpv_chunks()
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/cpv.py", line 111, in _set_cpv_chunks
    chunks = split_cpv(self.cpv, validate=self.validate)
  File "/Users/pvarner/Library/Gentoo/usr/lib/python2.6/site-packages/gentoolkit/cpv.py", line 233, in split_cpv
    raise errors.GentoolkitInvalidCPV(cpv)
gentoolkit.errors.GentoolkitInvalidCPV: Invalid CPV: 'app-admin/eselect-boost-0.3-r00.2'

A prefix ebuild for gentoolkit-0.3.0_rc10 can be found at:
http://dev.gentoo.org/~fuzzyray/gentoolkit-0.3.0_rc10.ebuild
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-06-02 13:48:58 UTC
We are trying to kill the prefix specific version. Don't spend too much time on it. =P

Added rc10-r1 to the prefix tree.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-06-11 13:32:15 UTC
*** Bug 323553 has been marked as a duplicate of this bug. ***
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-07-27 12:54:10 UTC
*** Bug 330037 has been marked as a duplicate of this bug. ***
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-10 04:35:32 UTC
*** Bug 336673 has been marked as a duplicate of this bug. ***
Comment 5 Paul Varner (RETIRED) gentoo-dev 2010-11-22 16:39:33 UTC
Since we've added prefix support to the ebuild, this one needs to be fixed.
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-22 16:49:45 UTC
Unfortunately, the task to kill the prefix specific CPV's is taking longer than anticipated.
Comment 7 Paul Varner (RETIRED) gentoo-dev 2010-11-22 20:04:54 UTC
$ svn commit -m "Fix cpv.py to handle prefix ebuild inter-revisions. Bug 313295"
Sending        gentoolkit/pym/gentoolkit/cpv.py
Transmitting file data .
Committed revision 865.

ebuild is being bumped to -r2 to contain the patch.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2010-11-24 19:01:38 UTC
Released in >=gentoolkit-0.3.0_rc11-r2