Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 73167

Summary: portage-2.0.51-r7 lost the ability to override profile packages
Product: Gentoo Linux Reporter: Harald van Dijk (RETIRED) <truedfx>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Check for - in 'packages' files

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.