From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2B4EF1384DF for ; Wed, 16 Jan 2013 12:56:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2975D21C017; Wed, 16 Jan 2013 12:56:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B131021C017 for ; Wed, 16 Jan 2013 12:56:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF1DC33DA41 for ; Wed, 16 Jan 2013 12:56:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 63E94E407D for ; Wed, 16 Jan 2013 12:56:44 +0000 (UTC) From: "Sven Eden" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" Message-ID: <1358145380.f4e7703e71415a0b67b0558137e50b0ac9ece5e7.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: ufed.pl.in X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: f4e7703e71415a0b67b0558137e50b0ac9ece5e7 X-VCS-Branch: master Date: Wed, 16 Jan 2013 12:56:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: eac9afe3-cb55-482f-9efa-fa71d8348b2f X-Archives-Hash: 7f27b90e535dcbac035f36af6f926337 commit: f4e7703e71415a0b67b0558137e50b0ac9ece5e7 Author: Sven Eden gmx de> AuthorDate: Mon Jan 14 06:36:20 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Mon Jan 14 06:36:20 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=f4e7703e Add variables to save masked flags before they get deleted. This is a preparation to add a "masked flags display on demand" to ufed. --- ufed.pl.in | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ufed.pl.in b/ufed.pl.in index a66ac52..e7f9673 100644 --- a/ufed.pl.in +++ b/ufed.pl.in @@ -12,6 +12,8 @@ use Portage; my $version = 'XX_PACKAGE_VERSION@'; my %use_descriptions; +my %masked_flags; +my %masked_descriptions; sub finalise(@); sub flags_dialog(); @@ -45,6 +47,8 @@ for(keys %Portage::use_masked_flags) { last if not($masked &&= $_); } if($masked) { + $masked_flags{$_} = $Portage::all_flags{$_}; + $masked_descriptions{$_} = $use_descriptions{$_}; delete $Portage::default_flags{$_}; delete $Portage::all_flags{$_}; delete $use_descriptions{$_};