summaryrefslogtreecommitdiffstats
path: root/web-export
diff options
context:
space:
mode:
Diffstat (limited to 'web-export')
-rw-r--r--web-export/README2
-rwxr-xr-xweb-export/update.py12
2 files changed, 4 insertions, 10 deletions
diff --git a/web-export/README b/web-export/README
index 94cbdbc..e5022fe 100644
--- a/web-export/README
+++ b/web-export/README
@@ -4,6 +4,6 @@ This directory contains the files used to export the specifications on
It's mostly two files:
- specs.idx: information on where to fetch specific versions of different
- specifications (usually CVS or git)
+ specifications (usually from git)
- update.py: hacky script that uses specs.idx and creates html pages
diff --git a/web-export/update.py b/web-export/update.py
index 8f3a3ef..8b9b6f0 100755
--- a/web-export/update.py
+++ b/web-export/update.py
@@ -29,7 +29,6 @@ import urlparse
DEVELOPMENT = False
-CVSWEB = 'http://cvs.freedesktop.org'
GITWEB = 'http://cgit.freedesktop.org'
HASH = 'md5'
@@ -94,11 +93,6 @@ class VcsObject:
path = '/'.join((self.repo, 'plain', self.file))
if self.revision:
query['id'] = self.revision
- elif self.vcs == 'cvs':
- baseurl = CVSWEB
- path = self.file
- if self.revision:
- query['rev'] = self.revision
else:
raise Exception('Unknown VCS: %s' % self.vcs)
@@ -260,11 +254,11 @@ for line in lines:
continue
(data, revision, version, path) = line.split()
+ splitted_line = data.split(":")
if data.startswith("git:"):
- git_data = data.split(":")
- vcs = VcsObject('git', git_data[1], git_data[2], revision)
+ vcs = VcsObject('git', splitted_line[1], splitted_line[2], revision)
else:
- vcs = VcsObject('cvs', None, data, revision)
+ vcs = VcsObject(splitted_line[0], None, data, revision)
spec = SpecObject(vcs, path, version)