Bunch of fixes
This commit is contained in:
parent
997dd8728c
commit
fa8e084879
4 changed files with 15 additions and 17 deletions
|
|
@ -65,7 +65,7 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
bullseye)
|
bullseye)
|
||||||
index_deb debian-bullseye $CMIRROR bullseye "main contrib non-free" cmp amd64
|
index_deb debian-bullseye $CMIRROR bullseye "main contrib non-free" cmp amd64
|
||||||
index_deb debian-bullseye $CMIRROR bullseye-updates "main contrib non-free" cmp amd64
|
#index_deb debian-bullseye $CMIRROR bullseye-updates "main contrib non-free" cmp amd64
|
||||||
;;
|
;;
|
||||||
bookworm)
|
bookworm)
|
||||||
index_deb debian-bookworm $CMIRROR bookworm "main contrib non-free" cmp amd64
|
index_deb debian-bookworm $CMIRROR bookworm "main contrib non-free" cmp amd64
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
. ./common.sh
|
. ./common.sh
|
||||||
|
|
||||||
AMIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/
|
AMIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/
|
||||||
CMIRROR=http://ftp.nluug.nl/pub/os/Linux/distr/fedora/linux/
|
CMIRROR=http://mirror.nl.leaseweb.net/fedora/linux/
|
||||||
|
|
||||||
|
|
||||||
# Fedora 7+ is pretty regular
|
# Fedora 7+ is pretty regular
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
. ./common.sh
|
. ./common.sh
|
||||||
|
|
||||||
AMIRROR=http://old-releases.ubuntu.com/ubuntu/
|
AMIRROR=http://old-releases.ubuntu.com/ubuntu/
|
||||||
CMIRROR=http://nl.archive.ubuntu.com/ubuntu/
|
CMIRROR=http://ftp.nluug.nl/os/Linux/distr/ubuntu/
|
||||||
|
|
||||||
|
|
||||||
# Shortcut for a standard Ubuntu repo, usage:
|
# Shortcut for a standard Ubuntu repo, usage:
|
||||||
|
|
@ -162,11 +162,11 @@ case $1 in
|
||||||
$0 cosmic
|
$0 cosmic
|
||||||
$0 disco
|
$0 disco
|
||||||
$0 eoan
|
$0 eoan
|
||||||
|
$0 groovy
|
||||||
;;
|
;;
|
||||||
current)
|
current)
|
||||||
$0 bionic # until 2023-04
|
$0 bionic # until 2023-04
|
||||||
$0 focal # until 2030-04
|
$0 focal # until 2030-04
|
||||||
$0 groovy # until 2021-07
|
|
||||||
$0 hirsute # until 2022-01
|
$0 hirsute # until 2022-01
|
||||||
$0 impish # until 2022-07
|
$0 impish # until 2022-07
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
24
www/index.pl
24
www/index.pl
|
|
@ -380,7 +380,7 @@ TUWF::get '/info/about' => sub {
|
||||||
<dl>
|
<dl>
|
||||||
<dt><code>/<name>[.<section>]</code> or <code>/man/<name>[.<section>]</code></dt><dd>
|
<dt><code>/<name>[.<section>]</code> or <code>/man/<name>[.<section>]</code></dt><dd>
|
||||||
Will try to get the latest and most-close-to-upstream version of a man
|
Will try to get the latest and most-close-to-upstream version of a man
|
||||||
page. That this will fetch the man page from any of the available
|
page. Note that this will fetch the man page from any of the available
|
||||||
systems, so may result in confusing scenarios for system-specific
|
systems, so may result in confusing scenarios for system-specific
|
||||||
documentation. I try to at least keep the selection algorithm stable and
|
documentation. I try to at least keep the selection algorithm stable and
|
||||||
deterministic, but can't provide any guarantees. Examples:<br>
|
deterministic, but can't provide any guarantees. Examples:<br>
|
||||||
|
|
@ -446,9 +446,8 @@ TUWF::get '/info/about' => sub {
|
||||||
For a particular version of a package (e.g. <a
|
For a particular version of a package (e.g. <a
|
||||||
href="/pkg/arch/core/coreutils/8.25-2">/pkg/arch/core/coreutils/8.25-2</a>).</dd>
|
href="/pkg/arch/core/coreutils/8.25-2">/pkg/arch/core/coreutils/8.25-2</a>).</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<p>Note that this site only indexes packages that actually have manual
|
<p>This site only indexes packages that actually have manual pages,
|
||||||
pages; Linking to a package that doesn't have any will result in a 404
|
linking to a package that doesn't have any will result in a 404 page.</p>
|
||||||
page.</p>
|
|
||||||
|
|
||||||
<h2 id="indexing">The indexing process</h2>
|
<h2 id="indexing">The indexing process</h2>
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -535,9 +534,9 @@ TUWF::get '/info/about' => sub {
|
||||||
<br /><br />
|
<br /><br />
|
||||||
The database schema is "documented" at <a
|
The database schema is "documented" at <a
|
||||||
href="https://code.blicky.net/yorhel/manned/src/branch/master/sql/schema.sql">schema.sql</a>
|
href="https://code.blicky.net/yorhel/manned/src/branch/master/sql/schema.sql">schema.sql</a>
|
||||||
in the git repo. Note that these dumps don't constitute a stable API and,
|
in the git repo. Keep in mind that these dumps don't constitute a stable
|
||||||
while this won't happen frequently, incompatible schema changes or Postgres
|
API and, while this won't happen frequently, incompatible schema changes
|
||||||
major version bumps will occassionally occur.
|
or Postgres major version bumps will occassionally occur.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 id="other-systems">Other systems</h2>
|
<h2 id="other-systems">Other systems</h2>
|
||||||
|
|
@ -549,11 +548,10 @@ TUWF::get '/info/about' => sub {
|
||||||
binary package based approach, or are otherwise less easy to properly index.
|
binary package based approach, or are otherwise less easy to properly index.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
In general, systems that follow an entirely source-based distribution
|
In general, systems that follow an entirely source-based distribution
|
||||||
approach can't be indexed without compiling everything. Since that is both
|
approach can't be indexed without compiling everything. Since that is much
|
||||||
very resource-heavy and open to security issues, there are no plans to
|
too resource-heavy, there are no plans to include manuals from such
|
||||||
include manuals from such systems at the moment. So unless someone comes
|
systems at the moment. So unless someone comes with a solution I hadn't
|
||||||
with a solution I hadn't thought of yet, there won't be any Gentoo manuals
|
thought of yet, there won't be any Gentoo manuals here. :-(
|
||||||
here. :-(
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 id="future-plans">Future plans</h2>
|
<h2 id="future-plans">Future plans</h2>
|
||||||
|
|
@ -1042,7 +1040,7 @@ TUWF::get qr{/pkg/([^/]+)/(.+)} => sub {
|
||||||
ul_ sub {
|
ul_ sub {
|
||||||
li_ sub {
|
li_ sub {
|
||||||
# Only add the hash or locale to the URL if it's necessary to select the proper man page.
|
# Only add the hash or locale to the URL if it's necessary to select the proper man page.
|
||||||
my $ext = $_->{needhash} ? '.'.shorthash_to_hex $_->{shorthash} : $_->{needlang} ? ".$_->{locale}" : '';
|
my $ext = $_->{needhash} ? '.'.shorthash_to_hex $_->{shorthash} : $_->{needlang} && length $_->{locale} ? ".$_->{locale}" : '';
|
||||||
a_ href => "/man$ext/$pkgpath/$sel->{version}/$_->{name}.$_->{section}", "$_->{name}($_->{section})";
|
a_ href => "/man$ext/$pkgpath/$sel->{version}/$_->{name}.$_->{section}", "$_->{name}($_->{section})";
|
||||||
b_ " $_->{locale}" if $_->{locale};
|
b_ " $_->{locale}" if $_->{locale};
|
||||||
small_ " $_->{filename}";
|
small_ " $_->{filename}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue