From 785a1c5637e69af93a263af92946feda5eed7262 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Sun, 17 Jan 2021 03:08:16 +0100 Subject: [PATCH] force atom namespace to be defined on top element --- cookbooks/planet/templates/default/planetdump.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cookbooks/planet/templates/default/planetdump.erb b/cookbooks/planet/templates/default/planetdump.erb index 85fc931c4..202740738 100644 --- a/cookbooks/planet/templates/default/planetdump.erb +++ b/cookbooks/planet/templates/default/planetdump.erb @@ -117,7 +117,9 @@ function mk_torrent { --encode "UTF-8" \ --template \ --match / \ - --elem "rss" --attr "version" --output "2.0" --break \ + --elem "rss" \ + --attr "version" --output "2.0" --break \ + --attr "atom:DUMMY" --break \ --elem "channel" \ --elem "title" --output "OpenStreetMap ${type} ${format} torrent RSS" --break \ --elem "link" --output "${rss_web_dir}" --break \ @@ -147,6 +149,7 @@ function mk_torrent { -s //NEW_item -t elem -n "comments" -v "Source: OpenStreetMap contributors, under ODbL 1.0 licence" \ -r //NEW_item -v "item" \ -u /rss/channel/lastBuildDate -v "${torrent_time_rfc}" \ + -d /rss/@atom:DUMMY \ -d '/rss/channel/item[position() <= count(/rss/channel/item) - 5]' \ ${rss_file} } -- 2.43.2