Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73167 - portage-2.0.51-r7 lost the ability to override profile packages
Summary: portage-2.0.51-r7 lost the ability to override profile packages
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-02 13:28 UTC by Harald van Dijk (RETIRED)
Modified: 2004-12-03 23:38 UTC (History)
0 users

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


Attachments
Check for - in 'packages' files (packages.patch,657 bytes, patch)
2004-12-02 13:29 UTC, Harald van Dijk (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Harald van Dijk (RETIRED) gentoo-dev 2004-12-02 13:28:17 UTC
I have "->=sys-devel/gcc-3.3.4-r1" in my /etc/portage/profile/packages, because I want to be able to reinstall gcc 2.95.3-r8 if I break it. When I upgraded portage, it gave me an error on that:

--- Invalid atom in //etc/portage/profile/packages: ->=sys-devel/gcc-3.3.4-r1

However, I know it's valid. This line:

self.packages      = stack_lists(self.packages_list, incremental=1)

in pym/portage.py makes it clear that being able to override packages with - is intended; that's the only purpose of incremental=1.

I've created a small patch that fixes this.

Reproducible: Always
Steps to Reproduce:
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2004-12-02 13:29:26 UTC
Created attachment 45168 [details, diff]
Check for - in 'packages' files
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2004-12-03 06:26:17 UTC
I see 2.0.51-r8 fixed this, so I guess I can close this. Thanks!
Comment 3 Matt Taylor 2004-12-03 15:44:24 UTC
Does your mask still work?  I can't get any masks using - to work at all.  There is no error message any more but portage just ignores them.
Comment 4 Harald van Dijk (RETIRED) gentoo-dev 2004-12-03 23:38:02 UTC
Matt: in 2.0.51-r8 I don't have any problems with masks; portage reads package.mask, package.unmask, package.keywords and packages all without a problem.