From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FIuZG-0001zR-CS for garchives@archives.gentoo.org; Mon, 13 Mar 2006 21:27:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with SMTP id k2DLOKlx023966; Mon, 13 Mar 2006 21:24:20 GMT Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by robin.gentoo.org (8.13.5.20060308/8.13.5) with ESMTP id k2DLDRHx024556 for ; Mon, 13 Mar 2006 21:13:28 GMT Received: from sj-core-5.cisco.com ([171.71.177.238]) by sj-iport-3.cisco.com with ESMTP; 13 Mar 2006 13:13:28 -0800 X-IronPort-AV: i="4.02,187,1139212800"; d="scan'208"; a="415099175:sNHT32532336" Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id k2DLDR7T024462 for ; Mon, 13 Mar 2006 13:13:27 -0800 (PST) Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-231.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 13 Mar 2006 13:13:27 -0800 Received: from [64.101.185.238] ([64.101.185.238]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 13 Mar 2006 13:13:27 -0800 Message-ID: <4415E077.4020400@cisco.com> Date: Mon, 13 Mar 2006 15:13:27 -0600 From: Roy Wright User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060312) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Another reason to begin USE with "-*" References: <200603111724.33733@goldspace.net> <44150C10.4010102@gentoo.org> <4415399C.7090408@cisco.com> <200603131124.05843.bss03@volumehost.net> In-Reply-To: <200603131124.05843.bss03@volumehost.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Mar 2006 21:13:27.0443 (UTC) FILETIME=[F8A00E30:01C646E2] X-Archives-Salt: ad6f55cc-7844-49e0-9e53-850e6e6f358a X-Archives-Hash: 1890ebf7a2c3d25cb28601f55a77e12f Boyd Stephen Smith Jr. wrote: >The -pv output of emerge shows this. A flag that was not available in your >current version but it available in the one you are installing, will be >colored yellow and postfixed with '%'. > > > Great. So something like the following in my cron.daily/portage.update script should do the job: echo "Save old use.desc" rm -f /usr/portage/profiles/use.desc.old cp /usr/portage/profiles/use.desc /usr/portage/profiles/use.desc.old echo "Save old use.local.desc" rm -f /usr/portage/profiles/use.local.desc.old cp /usr/portage/profiles/use.local.desc /usr/portage/profiles/use.local.desc.old echo "Syncing portage tree..." emerge --sync 2>> /var/log/portage.cron.log > /dev/null status=$? if [ $status -ne 0 ]; then echo "Portage sync failed, exiting update." exit $status fi echo "Changed use flags:" diff /usr/portage/profiles/use.desc.old /usr/portage/profiles/use.desc diff /usr/portage/profiles/use.local.desc.old /usr/portage/profiles/use.local.desc echo "Running eupdatedb..." eupdatedb --quiet --nocolor 2> /dev/null echo "Running update-eix..." update-eix --quiet echo "Checking for updates..." rm -f /tmp/emerge.output /usr/local/sbin/einfo --update --deep --newuse world emerge --update --deep --pretend --verbose --nospinner --newuse world > /tmp/emerge.output emerge --update --deep --fetchonly --quiet --nospinner --newuse world >> /tmp/emerge.output cat /tmp/emerge.output echo "New USE flags indicated by trailing percent sign in:" grep -P "\S+%" /tmp/emerge.output Thank you, Roy -- gentoo-user@gentoo.org mailing list