Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-10-23 08:14:54 +0200
committerErich Eckner <git@eckner.net>2018-10-23 08:14:54 +0200
commit795dd0db9848020c4d60b4f3eaaf9c2d7b82e4a8 (patch)
treeee6fa5dec4c64d8327fb98e2a4fa8197ed586dc0
parent76cd75a76753071e9bb1093dcc65bbc5a3f122b2 (diff)
bin/check-upstream-bug-tracker: -a|--architecture new
-rwxr-xr-xbin/check-upstream-bug-tracker24
1 files changed, 22 insertions, 2 deletions
diff --git a/bin/check-upstream-bug-tracker b/bin/check-upstream-bug-tracker
index a8d3476..95b6239 100755
--- a/bin/check-upstream-bug-tracker
+++ b/bin/check-upstream-bug-tracker
@@ -10,24 +10,36 @@ usage() {
>&2 echo 'for open bugs on packages that fail to build'
>&2 echo ''
>&2 echo 'possible options:'
- >&2 echo ' -h|--help: Show this help and exit.'
+ >&2 echo ' -a|--architecture $arch:'
+ >&2 echo ' only check packages which fail on $arch'
>&2 echo ' -f|--failure $identifier:'
>&2 echo ' only check packages which fail due to $identifier'
+ >&2 echo ' -h|--help: Show this help and exit.'
[ -z "$1" ] && exit 1 || exit "$1"
}
eval set -- "$(
- getopt -o f:h \
+ getopt -o a:f:h \
+ --long architecture: \
--long failure: \
--long help \
-n "$(basename "$0")" -- "$@" || \
echo usage
)"
+architecture=''
identifier=''
while true
do
case "$1" in
+ -a|--architecture)
+ shift
+ if [ -n "${architecture}" ]; then
+ >&2 echo 'Option -a only allowed once.'
+ usage
+ fi
+ architecture="$1"
+ ;;
-f|--failure)
shift
if [ -n "${identifier}" ]; then
@@ -72,6 +84,14 @@ trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT
printf ' FROM `package_sources`'
mysql_join_package_sources_upstream_repositories
mysql_join_package_sources_build_assignments
+ if [ -n "${architecture}" ]; then
+ mysql_join_build_assignments_architectures
+ printf ' AND `architectures`.`name`=from_base64("%s")' \
+ "$(
+ printf '%s' "${architecture}" | \
+ base64 -w0
+ )"
+ fi
if [ -n "${identifier}" ]; then
mysql_join_build_assignments_failed_builds
mysql_join_failed_builds_fail_reasons