Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
piuparts-report.py: fix link to states.png
· 81ba3455
Ansgar
authored
Sep 10, 2019
81ba3455
Add timeout when fetching packages files
· 68f2fab7
Stuart Prescott
authored
Dec 05, 2019
68f2fab7
Merge branch 'stuart/piuparts-tmp/develop/timeout' into develop
· 3f3a475d
Nicolas Dandrimont
authored
Jan 17, 2020
See merge request
!15
3f3a475d
Merge branch 'ansgar/piuparts-fix-link-to-states.png' into HEAD
· af510fd3
Nicolas Dandrimont
authored
Jan 17, 2020
See
!10
af510fd3
Hide whitespace changes
Inline
Side-by-side
piuparts-report.py
View file @
af510fd3
...
...
@@ -761,7 +761,7 @@ def create_section_navigation(section_names, current_section, doc_root):
%
(
doc_root
,
current_section
)
tablerows
+=
"
<tr><td class=
\"
contentcell
\"
><a href=
\"
%s/%s/source/
\"
>by source package</a></td></tr>
\n
"
\
%
(
doc_root
,
current_section
)
tablerows
+=
"
<tr><td class=
\"
contentcell
\"
>states <a href=
\"
%s/%s/states.png
/
\"
>graph</a></td></tr>
\n
"
\
tablerows
+=
"
<tr><td class=
\"
contentcell
\"
>states <a href=
\"
%s/%s/states.png
\"
>graph</a></td></tr>
\n
"
\
%
(
doc_root
,
current_section
)
tablerows
+=
"
<tr class=
\"
titlerow
\"
><td class=
\"
alerttitlecell
\"
>all tested suites</td></tr>
"
for
section
in
section_names
:
...
...
piupartslib/__init__.py
View file @
af510fd3
...
...
@@ -93,7 +93,7 @@ def open_packages_url(url):
error
=
None
for
ext
in
[
'
.xz
'
,
'
.bz2
'
,
'
.gz
'
,
''
]:
try
:
socket
=
urllib
.
request
.
urlopen
(
url
+
ext
)
socket
=
urllib
.
request
.
urlopen
(
url
+
ext
,
timeout
=
30
)
except
urllib
.
error
.
HTTPError
as
e
:
error
=
e
else
:
...
...