From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 4CD871382C5 for ; Mon, 19 Mar 2018 22:24:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41BEDE0991; Mon, 19 Mar 2018 22:24:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17D58E0991 for ; Mon, 19 Mar 2018 22:24:00 +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 BF94C335C2C for ; Mon, 19 Mar 2018 22:23:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5C628244 for ; Mon, 19 Mar 2018 22:23:56 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1521498084.ac021b43e1d310ea390535c0456285e0855fd5f4.ulm@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: eapi_usage.sh X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ac021b43e1d310ea390535c0456285e0855fd5f4 X-VCS-Branch: master Date: Mon, 19 Mar 2018 22:23:56 +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: b94d0ed8-d2a6-4263-8b96-879de7a0c02d X-Archives-Hash: b96937a85c096b57685b2f8e060eb93a commit: ac021b43e1d310ea390535c0456285e0855fd5f4 Author: Ulrich Müller gentoo org> AuthorDate: Mon Mar 19 22:21:24 2018 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Mon Mar 19 22:21:24 2018 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ac021b43 eapi_usage.sh: Ignore Manifest and gzipped files. Also EAPI should always be explicit in the md5-cache, so a default of 0 is not necessary. eapi_usage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eapi_usage.sh b/eapi_usage.sh index 3e72883..fd5df9d 100755 --- a/eapi_usage.sh +++ b/eapi_usage.sh @@ -7,10 +7,10 @@ # #pinspect eapi_usage /usr/portage -find /usr/portage/metadata/md5-cache -type f -exec awk ' +find /usr/portage/metadata/md5-cache -type f \ + ! -name '*.gz' ! -name 'Manifest*' -exec awk ' BEGINFILE { found=0 } /^EAPI=/ { sub("EAPI=",""); eapi[$1]++; found=1; nextfile } - ENDFILE { if (!found) eapi[0]++ } END { for (i in eapi) print i,eapi[i] } ' '{}' '+' | awk ' { eapi[$1]+=$2; total+=$2 }