Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99835 - ppc stable only selects also ppc64
Summary: ppc stable only selects also ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: [OLD] gpackages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Albert Hopkins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-21 13:47 UTC by Lars Weiler (RETIRED)
Modified: 2005-07-23 16:45 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 Lars Weiler (RETIRED) gentoo-dev 2005-07-21 13:47:23 UTC
When you select ppc and stable at the top of the page, it shows also ppc64
stable packages which don't have any ppc keyword.
Comment 1 Albert Hopkins (RETIRED) gentoo-dev 2005-07-21 22:19:54 UTC
Looks like a bad regex.
Comment 2 Albert Hopkins (RETIRED) gentoo-dev 2005-07-22 10:39:57 UTC
Ugly regular expression fix.  Speed up execution a bit as well.

gentoo.py:

297,302c297,299
<         stable_extra = ('ebuild.arch REGEXP "^%s| %s" '
<             ' AND ebuild.prevarch NOT REGEXP"^%s| %s"'
<             % (arch,arch,arch,arch))
<         testing_extra = ('ebuild.arch REGEXP "^~%s| ~%s" '
<             ' AND ebuild.prevarch NOT REGEXP "^~%s| ~%s"'
<             % (arch,arch,arch,arch))
---
>         stable_extra = ('ebuild.arch REGEXP "^%s[[:>:]]|[[:blank:]]%s[[:>:]]" '
>             % (arch,arch))
>         testing_extra = ('ebuild.arch REGEXP "[~]%s[[:>:]]" ' % arch)
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2005-07-23 16:45:18 UTC
Yep, works now as it should.  Thanks for the fix :-)