Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 120604 Details for
Bug 179870
Incorrect behaviour when multiple slots of the same package are used in package.use
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
distinguish slot atoms in package.use
puse_slot.patch (text/plain), 1.63 KB, created by
Zac Medico
on 2007-05-29 11:32:51 UTC
(
hide
)
Description:
distinguish slot atoms in package.use
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-05-29 11:32:51 UTC
Size:
1.63 KB
patch
obsolete
>Index: pym/portage_dep.py >=================================================================== >--- pym/portage_dep.py (revision 6657) >+++ pym/portage_dep.py (revision 6658) >@@ -568,19 +568,7 @@ > > if operator is None: > for x in candidate_list: >- xs = pkgsplit(x) >- if xs is None: >- xcpv = dep_getcpv(x) >- if slot is not None: >- xslot = dep_getslot(x) >- if xslot is not None and xslot != slot: >- """ This function isn't given enough information to >- reject atoms based on slot unless *both* compared atoms >- specify slots.""" >- continue >- if xcpv != mycpv: >- continue >- elif xs[0] != mycpv: >+ if dep_getkey(x) != mycpv: > continue > mylist.append(x) > >@@ -643,5 +631,14 @@ > else: > raise KeyError("Unknown operator: %s" % mydep) > >+ if slot is not None: >+ candidate_list = mylist >+ mylist = [] >+ for x in candidate_list: >+ xslot = dep_getslot(x) >+ if xslot is not None and xslot != slot: >+ continue >+ mylist.append(x) >+ > _match_from_list_cache[cache_key] = mylist > return mylist >Index: pym/portage.py >=================================================================== >--- pym/portage.py (revision 6657) >+++ pym/portage.py (revision 6658) >@@ -1724,7 +1724,10 @@ > oldpuse = self.puse > self.puse = "" > if self.pusedict.has_key(cp): >- self.pusekey = best_match_to_list(self.mycpv, self.pusedict[cp].keys()) >+ cpv_slot = self.mycpv >+ if mydb: >+ cpv_slot += ":" + mydb.aux_get(self.mycpv, ["SLOT"])[0] >+ self.pusekey = best_match_to_list(cpv_slot, self.pusedict[cp].keys()) > if self.pusekey: > self.puse = " ".join(self.pusedict[cp][self.pusekey]) > if oldpuse != self.puse:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179870
:
120355
|
120604
|
120606