From 76441de8774b7fe57f8b9633c513603b13161b10 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 27 Aug 2006 09:55:40 +0000 Subject: [PATCH] For --newuse, ignore masked/forced flags when comparing IUSE. See bug #144661. svn path=/main/trunk/; revision=4348 --- bin/emerge | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/emerge b/bin/emerge index 9008378b9..35c1ef63c 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1089,13 +1089,19 @@ class depgraph: old_use = bindb.aux_get(myeb_pkg, ["USE"])[0].split() pkgsettings.setcpv(myeb_pkg) now_use = pkgsettings["USE"].split() - if "--usepkgonly" not in self.myopts and \ - myeb == myeb_pkg and \ - iuses.symmetric_difference( - portdb.aux_get(myeb, ["IUSE"])[0].split()): + forced_flags = set() + forced_flags.update(pkgsettings.useforce) + forced_flags.update(pkgsettings.puseforce) + forced_flags.update(pkgsettings.usemask) + forced_flags.update(pkgsettings.pusemask) + cur_iuse = iuses + if "--usepkgonly" not in self.myopts and myeb: + cur_iuse = set(portdb.aux_get(myeb, ["IUSE"])[0].split()) + if iuses.symmetric_difference( + cur_iuse).difference(forced_flags): myeb_pkg = None elif iuses.intersection(old_use) != \ - iuses.intersection(now_use): + cur_iuse.intersection(now_use): myeb_pkg = None if myeb_pkg: binpkguseflags = \ -- 2.26.2