packages.d.o: correct debian-policy links

2020-09-27 Thread Holger Wansing
Hi,

attached is a patch to correct some broken debian-policy links on packages.d.o

I will apply it shortly.

But I wonder if there is some special action needed, to get the site newly
built with such changings? What triggers the site build?
I cannot find anything related in the webmaster-team/cron repo...


Holger

-- 
Holger Wansing 
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
diff --git a/lib/Parse/DebianChangelog.pm b/lib/Parse/DebianChangelog.pm
index cc48e1b..e6a87f4 100644
--- a/lib/Parse/DebianChangelog.pm
+++ b/lib/Parse/DebianChangelog.pm
@@ -1255,7 +1255,7 @@ with only one of the options specified.
 Parse::DebianChangelog::Entry, Parse::DebianChangelog::ChangesFilters
 
 Description of the Debian changelog format in the Debian policy:
-L.
+L.
 
 =head1 AUTHOR
 
diff --git a/templates/config/archive_layout.tmpl b/templates/config/archive_layout.tmpl
index 4bb5dba..e5354bc 100644
--- a/templates/config/archive_layout.tmpl
+++ b/templates/config/archive_layout.tmpl
@@ -19,9 +19,9 @@
 }
 
section_urls = {
-main => 'https://www.debian.org/doc/debian-policy/#the-main-archive-area',
-contrib => 'https://www.debian.org/doc/debian-policy/#the-contrib-archive-area',
-'non-free' => 'https://www.debian.org/doc/debian-policy/#the-non-free-archive-area',
+main => 'https://www.debian.org/doc/debian-policy/ch-archive.html#the-main-archive-area',
+contrib => 'https://www.debian.org/doc/debian-policy/ch-archive.html#the-contrib-archive-area',
+'non-free' => 'https://www.debian.org/doc/debian-policy/ch-archive.html#the-non-free-archive-area',
 }
 
 %]
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index a586f8c..6db1068 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -58,7 +58,7 @@
 [% END %]
 [%- PROCESS marker text=archive title=mirrors.$archive.title url=mirrors.$archive.url IF archive && archive != main_archive %]
 [%- PROCESS marker text=section title=section_titles.$section url=section_urls.$section IF section && section != main_section %]
-[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') url='https://www.debian.org/doc/debian-policy/#essential-packages' IF page.get_newest('essential') == 'yes' %]
+[%- PROCESS marker text=g('essential') title=g('package manager will refuse to remove this package by default') url='https://www.debian.org/doc/debian-policy/ch-binary.html#essential-packages' IF page.get_newest('essential') == 'yes' %]
 
 [% UNLESS is_virtual %]
 
@@ -196,7 +196,7 @@
 	[% END %]
 [% ELSE %]
 
-	[% g('This is a virtual package. See the Debian policy for a definition of virtual packages.',
+	[% g('This is a virtual package. See the https://www.debian.org/doc/debian-policy/";>Debian policy for a https://www.debian.org/doc/debian-policy/ch-binary.html#virtual-packages";>definition of virtual packages.',
 		policy_url, policy_url) %]
 [% END %]
  


Re: Tags: on package page link points at nonexistent server

2020-09-27 Thread Holger Wansing
Hi,

наб  wrote:
> All the links in the list (System Boot, C) point at packages.debian.org
> and work, but the link on Tags points at
>   https://debtags.alioth.debian.org/edit.html?pkg=grub-pc
> which doesn't even resolve.

A patch is attached to (hopefully) replace the old alioth search URL
https://debtags.alioth.debian.org/edit.html?pkg=
by the new one at debtags.d.o
https://debtags.debian.org/search/?wl=&q=&qf=default


Holger


-- 
Holger Wansing 
PGP-Fingerprint: 496A C6E8 1442 4B34 8508  3529 59F1 87CA 156E B076
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index a586f8c..8e2401a 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -204,7 +204,7 @@
 [% FOREACH tag IN tags %]
   [% IF loop.first -%]
 
-[% g('Tags') %]:
+[% g('Tags') %]:
   [%- END %]
   [% facet = tag.0; lfacet = "$facet-$po_lang"; 
  facet_name = debtags_voc.$lfacet;