From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-957417-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04856139694 for <garchives@archives.gentoo.org>; Sat, 24 Jun 2017 23:54:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DEB4AE0C47; Sat, 24 Jun 2017 23:54:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8E00E0C47 for <gentoo-commits@lists.gentoo.org>; Sat, 24 Jun 2017 23:54:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21BE734179A for <gentoo-commits@lists.gentoo.org>; Sat, 24 Jun 2017 23:54:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75CD1746C for <gentoo-commits@lists.gentoo.org>; Sat, 24 Jun 2017 23:54:33 +0000 (UTC) From: "Robin H. Johnson" <robbat2@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" <robbat2@gentoo.org> Message-ID: <1498348452.b0c007c6048b687f3b4b1bfc9a489192e5e9f40e.robbat2@gentoo> Subject: [gentoo-commits] proj/elections:master commit in: / X-VCS-Repository: proj/elections X-VCS-Files: Votify.pm X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: b0c007c6048b687f3b4b1bfc9a489192e5e9f40e X-VCS-Branch: master Date: Sat, 24 Jun 2017 23:54:33 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b6bf5250-b115-4829-9646-048d3d6496b6 X-Archives-Hash: 1f822199d39ee617894348944380963c commit: b0c007c6048b687f3b4b1bfc9a489192e5e9f40e Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> AuthorDate: Sat Jun 24 23:54:12 2017 +0000 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org> CommitDate: Sat Jun 24 23:54:12 2017 +0000 URL: https://gitweb.gentoo.org/proj/elections.git/commit/?id=b0c007c6 Votify: debug spam. Use of uninitialized value in subroutine entry at /etc/elections/Votify.pm line 135. Votify::get_single_election_hashref("council-201706") called at /etc/elections/Votify.pm line 148 Votify::get_elections_hash() called at /etc/elections/Votify.pm line 153 Votify::get_open_elections_hash() called at /etc/elections/election-stats-count line 41 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org> Votify.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Votify.pm b/Votify.pm index d53cfcb..d24b8cb 100644 --- a/Votify.pm +++ b/Votify.pm @@ -129,10 +129,10 @@ sub get_single_election_hashref { return undef unless defined $election_dir; my %election; foreach my $fn (@REQUIRED_FILES){ - #print "Scan $fn\n"; + print STDERR "Scan $fn\n"; my @filenames = (sprintf("%s/%s", "$basedir/$election_name", $fn), sprintf("%s/%s-%s", "$basedir/$election_name", $fn, $election_name)); - #print Dumper(@filenames); - my $filename = abs_path(List::Util::first { -f $_ } @filenames); + print STDERR Dumper(@filenames); + my $filename = abs_path(List::Util::first { $_ && -f $_ } @filenames); $election{"${fn}file"} = $filename; }; #print Dumper(%election);