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 85D901382C5 for ; Tue, 2 Jun 2020 16:15:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86BB2E0855; Tue, 2 Jun 2020 16:15:16 +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 6B7BEE0855 for ; Tue, 2 Jun 2020 16:15:16 +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 A9C4C34E531 for ; Tue, 2 Jun 2020 16:15:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A1584259 for ; Tue, 2 Jun 2020 16:15:12 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1591114482.ed8c6968a49e85d8da58425eb1eb946f01ab48e1.mgorny@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: cgi-bin/, / X-VCS-Repository: proj/qa-scripts X-VCS-Files: cgi-bin/get-git-file.sh pkgcheck2html X-VCS-Directories: cgi-bin/ / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ed8c6968a49e85d8da58425eb1eb946f01ab48e1 X-VCS-Branch: master Date: Tue, 2 Jun 2020 16:15:12 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6e4001fd-d529-4acd-88d6-f123f9061931 X-Archives-Hash: 49d4c6dcc257eddf1c89ea9359fcbdf3 commit: ed8c6968a49e85d8da58425eb1eb946f01ab48e1 Author: Michał Górny gentoo org> AuthorDate: Tue Jun 2 16:14:42 2020 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Jun 2 16:14:42 2020 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=ed8c6968 Support package filtering & rev info in pkgcheck2html Signed-off-by: Michał Górny gentoo.org> cgi-bin/get-git-file.sh | 8 +++++++- pkgcheck2html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cgi-bin/get-git-file.sh b/cgi-bin/get-git-file.sh index e899601..ef57a72 100755 --- a/cgi-bin/get-git-file.sh +++ b/cgi-bin/get-git-file.sh @@ -24,6 +24,9 @@ main() { include-projects) projects=--projects ;; + pkg=*) + filter_pkg="--pkg ${pkg}" + ;; esac [[ ${qs} == *\;* ]] && qs=${qs#*;} || qs= done @@ -64,6 +67,9 @@ main() { fi fi + local revarg= + [[ ${commit} != HEAD ]] && revarg="--revision ${commit}" + local ct case "${file}" in *.css) ct=text/css;; @@ -81,7 +87,7 @@ main() { | PYTHONIOENCODING=utf8 python \ "${topdir}"/pkgcheck2html/pkgcheck2html.py ${verbose} \ -x "${topdir}"/pkgcheck2html/excludes.json \ - ${filter_maint} ${projects} -t "${ts}" - + ${filter_maint} ${projects} ${filter_pkg} -t "${ts}" - else git cat-file -p "${tree[2]}" fi diff --git a/pkgcheck2html b/pkgcheck2html index a0d7dc5..4eb6fc5 160000 --- a/pkgcheck2html +++ b/pkgcheck2html @@ -1 +1 @@ -Subproject commit a0d7dc5e8b7d6f2c3aef16020513440851cf8b9c +Subproject commit 4eb6fc540e0d94badb23874be411ad2df894b08f