only publish atom, rss10, and rss20 via PuSH

This commit is contained in:
Matt Domsch 2010-06-15 12:26:39 -05:00 committed by Sam Ruby
parent 7c595c60f3
commit d9cef10930

View File

@ -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: