Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattia Rizzolo
jenkins.d.n
Commits
35210b76
Commit
35210b76
authored
Aug 30, 2015
by
Holger Levsen
Browse files
reproducible: display correct up2date version for blacklisted packages
parent
6aee9c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/reproducible_common.py
View file @
35210b76
...
...
@@ -673,7 +673,16 @@ class Build:
except
IndexError
:
# there is no package with this name in this
return
# suite/arch, or none at all
self
.
status
=
str
(
result
[
0
])
self
.
version
=
str
(
result
[
1
])
if
self
.
status
!=
'blacklisted'
:
self
.
version
=
str
(
result
[
1
])
else
query
=
'SELECT version FROM sources WHERE name="{}" '
+
\
'AND suite="{}" AND architecture="{}"'
query
=
query
.
format
(
self
.
package
,
self
.
suite
,
self
.
arch
)
try
:
self
.
version
=
query_db
(
query
)[
0
][
0
]
except
IndexError
:
# there is no package with this name in this
self
.
version
=
''
# suite/arch, or none at all
if
result
[
2
]:
self
.
build_date
=
str
(
result
[
2
])
+
' UTC'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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