Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-06 14:00:05 +0200
committerErich Eckner <git@eckner.net>2017-10-06 14:00:05 +0200
commit6f5abf1b9c394117c933ef8000a7a01299e0b981 (patch)
treec780229a414784306a1f125583fe8f02078f4e7c /bin/build-master-status
parentea10fdd184195317fe6716a8db0c0a11bcfae5e4 (diff)
bin/build-master-status: style improvement for blacklist.html
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status20
1 files changed, 18 insertions, 2 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 4a01565..fd78adc 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -419,14 +419,30 @@ if ${web}; then
'<html>' \
'<head>' \
'<title>Blacklisted packages</title>' \
+ '<link rel="stylesheet" type="text/css" href="/static/style.css">' \
'</head>' \
- '<body>'
+ '<body>' \
+ '<table>'
+ printf '<tr>'
+ printf '<th>%s</th>' \
+ 'package' \
+ 'reason'
+ printf '</tr>\n'
git -C "${repo_paths__archlinux32}" archive "$(cat "${work_dir}/archlinux32.revision")" -- 'blacklist' | \
tar -Ox | \
sed '
- s|$|<br>|
+ /.#/!s/$/#/
+ s|\(.\)#|\1</td><td>|
+ /^\s*#/{
+ s/^\s*#\s*//
+ s|\s*\(</td><td>\)|</font>\1|
+ s/^/<font color="#808080">/
+ }
+ s|^|<tr><td>|
+ s|$|</td></tr>|
'
printf '%s\n' \
+ '</table>' \
'</body>' \
'</html>'
} > \