summaryrefslogtreecommitdiffstats
path: root/web-export/update.py
diff options
context:
space:
mode:
authorVincent Untz <vuntz@gnome.org>2012-03-14 18:02:11 +0100
committerVincent Untz <vuntz@gnome.org>2012-03-14 18:02:11 +0100
commit96572ad5922e33d7cc056638d7f161b9acba65a6 (patch)
treec117ade3aa2cbab3a0ee392a30581242cae28867 /web-export/update.py
parent4d20ab3aef648bb93601b4e7fd46f3032176c0d7 (diff)
downloadxdg-specs-96572ad5922e33d7cc056638d7f161b9acba65a6.tar.xz
web-export: Add support for specs written directly in .html
Diffstat (limited to 'web-export/update.py')
-rwxr-xr-xweb-export/update.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/web-export/update.py b/web-export/update.py
index cd54f28..8f3a3ef 100755
--- a/web-export/update.py
+++ b/web-export/update.py
@@ -133,7 +133,7 @@ class SpecObject():
self.filename = '%s-%s%s' % (self.basename_no_ext, self.version, self.ext)
- if self.ext not in ['.xml', '.sgml', '.txt', '.dtd']:
+ if self.ext not in ['.xml', '.sgml', '.txt', '.dtd', '.html']:
raise Exception('Format \'%s\' not supported for %s' % (self.ext, self.vcs.get_url()))
self.downloaded = False
@@ -161,6 +161,9 @@ class SpecObject():
if not self.downloaded and not force:
return
+ if self.ext == '.html':
+ return
+
path = os.path.join(self.spec_dir, self.filename)
(path_no_ext, ext) = os.path.splitext(path)