]> git.openstreetmap.org Git - chef.git/commitdiff
force atom namespace to be defined on top <rss> element
authorMatija Nalis <mnalis-git@voyager.hr>
Sun, 17 Jan 2021 02:08:16 +0000 (03:08 +0100)
committerGrant <github@firefishy.com>
Sun, 23 May 2021 19:20:02 +0000 (20:20 +0100)
cookbooks/planet/templates/default/planetdump.erb

index 85fc931c4c40e099ba67145f925eb447b77432c5..202740738982985d2caa665317ddff72b93eac8d 100644 (file)
@@ -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}
 }