summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-23 20:43:48 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-23 20:43:48 +0100
commitec8f143d1ad66ed1af8609e76c144af06454afae (patch)
tree0b2b9e5b1d2a1b40de356ee726b9f58a9f5b9e69 /bin
parentc78d76d637c4697ae72780a439506f1a8dd8950e (diff)
downloadjenkins.debian.net-ec8f143d1ad66ed1af8609e76c144af06454afae.tar.xz
qa.d.o: use logparse/debian.rules
Diffstat (limited to 'bin')
-rwxr-xr-xbin/udd-query.sh31
1 files changed, 17 insertions, 14 deletions
diff --git a/bin/udd-query.sh b/bin/udd-query.sh
index 71efce71..9fde6f5a 100755
--- a/bin/udd-query.sh
+++ b/bin/udd-query.sh
@@ -46,9 +46,13 @@ multiarch_versionskew() {
ORDER BY source ;"
udd_query
- cat $UDD
- # TODO: turn source package names into links
- # TODO: show versions (per arch) too
+ if [ -s $UDD ] ; then
+ echo "Warning: multi-arch version skew in $DISTRO detected."
+ echo
+ # TODO: turn source package names into links
+ # TODO: show versions (per arch) too
+ cat $UDD
+ fi
rm $UDD
}
@@ -65,10 +69,8 @@ orphaned_without_o_bug() {
udd_query
cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD"
-
curl --silent https://qa.debian.org/data/bts/wnpp_rm \
| cut -d ' ' -f 1 | tr -d ':' | sort | uniq > "$WNPPRM"
-
comm -23 "$SORTED_UDD" "$WNPPRM" > "$RES1"
# $RES1 now contains all packages that have packages@qa.debian.org as the
@@ -76,30 +78,31 @@ orphaned_without_o_bug() {
# (because they are missing a bug)
# we have to remove all the packages that appear in experimental but do not
# have packages@qa.debian.org as a maintainer (i.e: they found a new one)
-
SQL_QUERY="SELECT DISTINCT source
FROM sources
WHERE maintainer NOT LIKE '%packages@qa.debian.org%'
AND release='experimental'
ORDER BY source ; "
udd_query
- cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD"
- echo "The following packages are maintained by packages@qa.debian.org"
- echo "but are missing a wnpp bug according to https://qa.debian.org/data/bts/wnpp_rm"
- echo
+ if [ -s $UDD ] ; then
+ cat $UDD | tr -d ' ' | sort | uniq > "$SORTED_UDD"
- comm -13 "$SORTED_UDD" "$RES1"
+ echo "Warning: The following packages are maintained by packages@qa.debian.org"
+ echo "but are missing a wnpp bug according to https://qa.debian.org/data/bts/wnpp_rm"
+ echo
+ # TODO: turn source package names into links
+ comm -13 "$SORTED_UDD" "$RES1"
+ fi
rm -f "$UDD" "$WNPPRM" "$RES1" "$SORTED_UDD"
-
}
#
# main
#
UDD=$(mktemp)
-case QUERY in
+case $1 in
orphaned_without_o_bug)
orphaned_without_o_bug
;;
@@ -110,4 +113,4 @@ case QUERY in
echo "unknown query requested, exiting... please provide patches :)"
;;
esac
-
+echo