Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
homepage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
homepage
Commits
526f6eeb
Commit
526f6eeb
authored
Nov 03, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update vmod script to python3
parent
f6a28c5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
178 additions
and
182 deletions
+178
-182
Makefile
R1/Makefile
+1
-1
build.py
R1/source/vmods/build.py
+177
-181
No files found.
R1/Makefile
View file @
526f6eeb
...
...
@@ -27,7 +27,7 @@ all: generate html
cp source
/favicon.ico build/html
generate
:
cd source
/vmods
&&
python
2.7
build.py
cd source
/vmods
&&
python
3
build.py
pub
:
${
MAKE
}
rsync
\
...
...
R1/source/vmods/build.py
View file @
526f6eeb
#!/usr/bin/env python
from
__future__
import
print_function
import
glob
import
json
import
sys
...
...
@@ -44,8 +42,7 @@ class vmod(object):
elif
g
!=
None
:
v
=
g
[
"branches"
]
.
keys
()
if
v
!=
None
:
v
.
sort
()
return
v
return
sorted
(
v
)
return
list
()
def
url_vcc
(
self
,
rev
):
...
...
@@ -112,7 +109,7 @@ class vmod(object):
s
=
""
i
=
self
.
repos
()
if
i
!=
None
:
for
n
in
sorted
(
i
.
iterkeys
()
):
for
n
in
sorted
(
i
):
s
+=
" `
%
s <
%
s>`__ "
%
(
n
,
i
[
n
])
l
.
append
(
s
)
...
...
@@ -152,8 +149,7 @@ def make_www_table():
vmods
=
load_all
()
nms
=
vmods
.
keys
()
nms
.
sort
()
nms
=
sorted
(
vmods
.
keys
())
l
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment