aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-02 18:14:42 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-02 18:14:42 +0200
commited8c6968a49e85d8da58425eb1eb946f01ab48e1 (patch)
tree3321f0e5ae37457bba9fb181f5d644ea794794c8
parentLink svg variants of py-reports (diff)
downloadqa-scripts-ed8c6968a49e85d8da58425eb1eb946f01ab48e1.tar.gz
qa-scripts-ed8c6968a49e85d8da58425eb1eb946f01ab48e1.tar.bz2
qa-scripts-ed8c6968a49e85d8da58425eb1eb946f01ab48e1.zip
Support package filtering & rev info in pkgcheck2html
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rwxr-xr-xcgi-bin/get-git-file.sh8
m---------pkgcheck2html0
2 files changed, 7 insertions, 1 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
-Subproject a0d7dc5e8b7d6f2c3aef16020513440851cf8b9
+Subproject 4eb6fc540e0d94badb23874be411ad2df894b08