summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2014-04-04 12:47:24 +0200
committerDavid Faure <faure@kde.org>2014-04-04 12:47:24 +0200
commit687aa0959a12b292951717b468ad3ec33a14f302 (patch)
treed29f620ce4a777f6059d8fcfafd1c3fc3e503b6a
parent3048968e19c2c4557f7843075dfa69c2964a7e15 (diff)
downloadxdg-specs-687aa0959a12b292951717b468ad3ec33a14f302.tar.xz
Remove support for CVS, now unused.
-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)