summaryrefslogtreecommitdiff
path: root/web-export
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-10-21 16:03:31 +0200
committerBastien Nocera <hadess@hadess.net>2019-10-21 18:22:02 +0200
commit68340df3e92b72c402793c17eb7c4b87dde83085 (patch)
tree20441126cfcca8df2fcf316d019fab312e80dd4d /web-export
parenta3cb7654118f721a8278607d757ef1dea3333622 (diff)
web-export: Update for gitlab
URL formatting is slightly different.
Diffstat (limited to 'web-export')
-rwxr-xr-xweb-export/update.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/web-export/update.py b/web-export/update.py
index f8b0d42..3f5188b 100755
--- a/web-export/update.py
+++ b/web-export/update.py
@@ -34,7 +34,7 @@ DEVELOPMENT = True
# But since docbook2html isn't installed there, we currently have to run it locally so this is now True (i.e. it uses the local files)
USELOCALFILES = True
-GITWEB = 'http://cgit.freedesktop.org'
+GITWEB = 'http://gitlab.freedesktop.org'
HASH = 'md5'
if not spawn.find_executable("xmlto"):
@@ -98,9 +98,10 @@ class VcsObject:
query = {}
if self.vcs == 'git':
baseurl = GITWEB
- path = '/'.join((self.repo, 'plain', self.file))
if self.revision:
- query['id'] = self.revision
+ path = '/'.join((self.repo, 'raw', self.revision, self.file))
+ else:
+ path = '/'.join((self.repo, 'raw', 'master', self.file))
else:
raise Exception('Unknown VCS: %s' % self.vcs)