diff options
author | Sylvain Beucler <beuc@beuc.net> | 2020-11-02 16:15:39 +0100 |
---|---|---|
committer | Sylvain Beucler <beuc@beuc.net> | 2020-11-02 16:15:39 +0100 |
commit | 4f5d4ee91bbab3cae48b020485fa75ff0d724d1e (patch) | |
tree | f4d0b6940bdd1190859aafdd820823480b9653b0 | |
parent | aadb1a1baf32b39f408ef0e8f84d047cf6531b5b (diff) |
Fix LTS links in RSS feeds (#973544)beuc/webwml-patch-rdf
-rw-r--r-- | english/template/debian/recent_list.wml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/english/template/debian/recent_list.wml b/english/template/debian/recent_list.wml index 7b2f7fbdcc6..cef5f7feb5f 100644 --- a/english/template/debian/recent_list.wml +++ b/english/template/debian/recent_list.wml @@ -327,18 +327,19 @@ sub grab_titles { $rdate = newsdate($hdate); @rdate = map( newsdate($_), @hdate ); @isodate = map( sprintf("%04d-%02d-%02d", split '-', $_), @hdate ); - $title =~ s/(DSA-\d{3,})-\d{1}/$1/; # strip off the revision in the DSA number + $title =~ s/(D[SL]A-\d{3,})-\d{1}/$1/; # strip off the revision in the DSA/DLA number # we need absolute paths for rdf (my $rdfbase = $base) =~ s/^security\///; + my $prefix = '/lts' if $eng_dir =~ /\/lts\//; if ($format =~ /\brdf\b/) { foreach (@isodate) { push @str1, "\n" ."<item rdf:about=\"https://www.debian.org" - ."/security/$rdfbase\">\n" + ."$prefix/security/$rdfbase\">\n" ." <title>$title</title>\n" - ." <link>https://www.debian.org/" - ."security/$rdfbase</link>\n" + ." <link>https://www.debian.org" + ."$prefix/security/$rdfbase</link>\n" ." <description>\n" ." $desc\n" ." </description>\n" @@ -381,7 +382,7 @@ sub grab_titles { { <protect pass=2> push @str1, "<rdf:li resource=\"https://www.debian.org" - ."/security/$rdfbase\" />\n"; + ."$prefix/security/$rdfbase\" />\n"; </protect> } $str1 = $str1[0]; |