Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-07 10:16:05 +0100
committerErich Eckner <git@eckner.net>2017-11-07 10:16:05 +0100
commit686a5a9e48946657c3e489bb2f5ce9e3ef4b34cc (patch)
tree6814ab292cb1178048b925553d49c95418a113c8 /bin/common-functions
parentf98072f6d086d128071047d4a4ad5db560686c12 (diff)
bin/check-bugtracker, bin/common-functions, bin/modify-package-state: adopt to categories of bugtracker
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions21
1 files changed, 7 insertions, 14 deletions
diff --git a/bin/common-functions b/bin/common-functions
index c233003..3af96dd 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -1177,26 +1177,19 @@ print_list_of_archaic_packages() {
sort -u
}
-# receive_buglist
-# receive the buglist from bugs.archlinux32.org and print it to stdout
+# receive_buglist $category
+# receive the buglist from bugs.archlinux32.org for $category (e.g. 'Testing')
+# and print it to stdout
receive_buglist() {
+ local category
+ category="$1"
curl -Ss 'http://bugs.archlinux32.org/index.php?export_list=Export%20Tasklist' | \
sed '
1 d
- /^[^,]\+,Packages,/ ! d
+ /^[^,]\+,"Packages: '"${category}"'",/ ! d
s/^\([^,]\+,\)\{3\}//
- s/^"[^"]\+","//
+ s/^\("[^"]\+"\|[^"][^,]*\),"//
s/".*$//
'
}
-
-# package_has_bug ${package}
-# check if there is an open bug report on ${package} in testing or community-testing
-# the bug list is read from stdin
-
-package_has_bug() {
- local package
- package="$1"
- grep -q "$(str_to_regex "[${package}]").*<\(community-\)\?testing>"
-}