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:
Created attachment 45168 [details, diff] Check for - in 'packages' files
I see 2.0.51-r8 fixed this, so I guess I can close this. Thanks!
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.
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.