From: Zac Medico Date: Sun, 21 Nov 2010 03:05:10 +0000 (-0800) Subject: Use Package.use.force/mask attributes. X-Git-Tag: v2.1.9.25~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=814a379f0800b4c001d2853b6a4ec71a6595f5c5;p=portage.git Use Package.use.force/mask attributes. This optimizes the fix for bug #345979. --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 935b51849..b51acf942 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2960,8 +2960,7 @@ class depgraph(object): atom.use.missing_enabled.difference(pkg.iuse.all)) if need_enabled: if not pkg.built: - pkgsettings.setcpv(pkg) - if not pkgsettings.usemask.intersection(need_enabled): + if not pkg.use.mask.intersection(need_enabled): # Be careful about masked flags, since they # typically aren't adjustable by the user. packages_with_invalid_use_config.append(pkg) @@ -2971,9 +2970,8 @@ class depgraph(object): need_disabled = atom.use.disabled.intersection(use) if need_disabled: if not pkg.built: - pkgsettings.setcpv(pkg) - if not pkgsettings.useforce.difference( - pkgsettings.usemask).intersection(need_disabled): + if not pkg.use.force.difference( + pkg.use.mask).intersection(need_disabled): # Be careful about forced flags, since they # typically aren't adjustable by the user. packages_with_invalid_use_config.append(pkg)