Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23769 - portdbapi.cpv_exists doesn't play nicely with PORTAGE_OVERLAY
Summary: portdbapi.cpv_exists doesn't play nicely with PORTAGE_OVERLAY
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-30 11:20 UTC by Ross Girshick
Modified: 2011-10-30 22:19 UTC (History)
0 users

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


Attachments
patch to fix this bug (tmp.txt,786 bytes, patch)
2003-06-30 11:22 UTC, Ross Girshick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Girshick 2003-06-30 11:20:53 UTC
In portage 2.0.48-r1 portdbapi.cpv_exists() acts incorrectly is a portage 
overlay is specified.

Reproducible: Always
Steps to Reproduce:
1. set an overlay in /etc/make.conf (make sure this overlay doesn't contain sys-
apps/portage-2.0.48-r1)
2. import portage
   print portage.portdb.cpv_exists('sys-apps/portage-2.0.48-r1')



Expected Results:  
1

I'll attach a patch to fix this.
Comment 1 Ross Girshick 2003-06-30 11:22:25 UTC
Created attachment 14043 [details, diff]
patch to fix this bug
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-07-02 05:57:25 UTC
I'm not certain what your patch did except remove redundency...
portage-2.0.48-r3 has multiple overlay support and something
similar to what you did.
Comment 3 Ross Girshick 2003-07-02 06:09:19 UTC
The logic in the unpatched version assumes that if an overlay is defined, then the package must be in that overlay. Else the package must not exist. The patch makes it check the portage tree if the overlay is defined _and_ the package is not in the overlay. I'll check that this is fixed in -r3.