You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/11/10 11:44:17 UTC
[whimsy] branch master updated: Detect missing links
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 2cc8ac9 Detect missing links
2cc8ac9 is described below
commit 2cc8ac9a952005a93942d46d4d06e71a142fb403
Author: Sebb <se...@apache.org>
AuthorDate: Tue Nov 10 11:44:08 2020 +0000
Detect missing links
---
tools/download_check.rb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/download_check.rb b/tools/download_check.rb
index a5a3575..312bbc9 100755
--- a/tools/download_check.rb
+++ b/tools/download_check.rb
@@ -358,6 +358,9 @@ def _checkDownloadPage(path, tlp, version)
deprecated = Time.parse('2018-01-01')
links = get_links(body)
+ if links.size < 6 # source+binary * archive+sig+hash
+ E "Page does not have enough links: #{links.size} < 6 -- perhaps it needs JavaScript?"
+ end
# check KEYS link
# TODO: is location used by hc allowed, e.g.