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 765E21389C0 for ; Tue, 12 Feb 2013 09:01:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2E3AE21C05A; Tue, 12 Feb 2013 09:01:23 +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 A745321C062 for ; Tue, 12 Feb 2013 09:01:22 +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 AB67C33E697 for ; Tue, 12 Feb 2013 09:01:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 689DDE4095 for ; Tue, 12 Feb 2013 09:01:18 +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: <1360570601.0742c180bd08d25b31ca6d75c6e64fd473f53321.yamakuzure@gentoo> Subject: [gentoo-commits] proj/ufed:master commit in: / X-VCS-Repository: proj/ufed X-VCS-Files: Portage.pm X-VCS-Directories: / X-VCS-Committer: yamakuzure X-VCS-Committer-Name: Sven Eden X-VCS-Revision: 0742c180bd08d25b31ca6d75c6e64fd473f53321 X-VCS-Branch: master Date: Tue, 12 Feb 2013 09:01:18 +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: 56d89b6f-c5b1-4a57-bb7c-632136e62d8a X-Archives-Hash: b81d473fc97e3c5a636dbd12522296b1 commit: 0742c180bd08d25b31ca6d75c6e64fd473f53321 Author: Sven Eden gmx de> AuthorDate: Mon Feb 11 08:16:41 2013 +0000 Commit: Sven Eden gmx de> CommitDate: Mon Feb 11 08:16:41 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=0742c180 It is no longer needed to have an existing {global} part for temp use flags. --- Portage.pm | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Portage.pm b/Portage.pm index c60b05a..5416beb 100644 --- a/Portage.pm +++ b/Portage.pm @@ -76,7 +76,7 @@ my $_use_template = { installed => 0, masked => 0, "package" => 0, - pkguse => 0, + pkguse => 0 }; # --- public methods --- @@ -194,7 +194,6 @@ sub _add_temp defined ($_use_temp->{$flag}{global}) or %{$_use_temp->{$flag}{global}} = %$_use_template; } else { - _add_temp($flag, "global"); ## This must exist! defined ($_use_temp->{$flag}{"local"}{$pkg}) or %{$_use_temp->{$flag}{"local"}{$pkg}} = %$_use_template; } @@ -311,7 +310,7 @@ sub _gen_use_flags my $pRef = undef; # Build the description consolidation hash - if ($hasGlobal) { + if ($lCount) { $gDesc = $gRef->{descr}; $gKey = sprintf("[%s]%d:%d:%d:%d:%d:%d:%d", $gDesc, $gRef->{conf}, $gRef->{"default"}, $gRef->{forced}, $gRef->{installed}, $gRef->{masked},