cookutils diff lighttpd/index.cgi @ rev 1084
Tiny edits
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Fri Jul 13 18:43:25 2018 +0100 (2018-07-13) |
parents | a97d05aa96a3 |
children | 461c3da71257 |
line diff
1.1 --- a/lighttpd/index.cgi Fri Jul 13 03:28:18 2018 +0300 1.2 +++ b/lighttpd/index.cgi Fri Jul 13 18:43:25 2018 +0100 1.3 @@ -64,7 +64,7 @@ 1.4 fi 1.5 1.6 1.7 -# Show the running command and it's progression 1.8 +# Show the running command and its progression 1.9 1.10 running_command() { 1.11 state="$(cat $command)" 1.12 @@ -256,16 +256,16 @@ 1.13 1.14 # Proxy to the Repology 1.15 # Problems: 1.16 -# 1. Function "latest packaged version" widely used here, and it has no JSON API, but only SVG badge. 1.17 -# 2. So, all version comparisons can be only visually and not automated. 1.18 -# 3. When the thousands of badges present on the web page, many of them are broken (maybe server 1.19 +# 1. Function "latest packaged version" widely used here and it has no JSON API, but only SVG badge. 1.20 +# 2. So, all version comparisons can be only visual and not automated. 1.21 +# 3. Of the thousands of badges present on the web page, many of them are broken (maybe server 1.22 # drops requests), while our server displays status icons well. 1.23 # 4. Default badges are wide and not customizable. 1.24 # Solution: 1.25 -# 1. Make local cache. Update it on demand, but no more than once a day (Repology cached info 1.26 +# 1. Make local cache. Update it on demand, but no more than once a day (Repology caches info 1.27 # on a hourly basis). Use cached values when they are not expired. 1.28 # 2. Extract and save version(s) from the SVG badges. Values can be compared in the scripts as well 1.29 -# as custom badges may be provided. 1.30 +# as custom badges that may also be provided. 1.31 1.32 repology_get() { 1.33 local found versions day=$(date +%j) # %j is the number of the day in the year 1.34 @@ -1149,7 +1149,7 @@ 1.35 cat <<EOT 1.36 <section> 1.37 <h2>For maintainers</h2> 1.38 - <p>Check your packages version, ${maintainer:-maintainer}.</p> 1.39 + <p>Check your packages version: ${maintainer:-maintainer}.</p> 1.40 <form> 1.41 <select name="maintainer"> 1.42 <option value=''>--- select maintainer ---