Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only publish atom, rss10, and rss20 via PuSH

  • Loading branch information...
commit d9cef10930e62c247d44a4f626e5f124575e2eaf 1 parent 7c595c6
@mdomsch mdomsch authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  planet/publish.py
View
2  planet/publish.py
@@ -7,7 +7,7 @@ def publish(config):
link = config.link()
if hub and link:
for root, dirs, files in os.walk(config.output_dir()):
- xmlfiles = [urlparse.urljoin(link, f) for f in files if f.endswith('.xml')]
+ xmlfiles = [urlparse.urljoin(link, f) for f in files if f in ['atom.xml', 'rss10.xml', 'rss20.xml']]
try:
PuSH.publish(hub, xmlfiles)
except PuSH.PublishError, e:
Please sign in to comment.
Something went wrong with that request. Please try again.