Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Reproducible Builds
diffoscope
Compare revisions
aa1abf07fa61142557bf729667eebc914e066532...9acd83bd8c136fce0832b3193d74b3dc0834c553
Commits (2)
Report when the GNU_BUILD_ID field has been modified
· 5c166d92
Roland Clobus
authored
Dec 08, 2021
5c166d92
Cosmetic: Update usage of whitespace in comments
· 9acd83bd
Roland Clobus
authored
Dec 08, 2021
9acd83bd
Hide whitespace changes
Inline
Side-by-side
diffoscope/comparators/elf.py
View file @
9acd83bd
...
...
@@ -662,9 +662,11 @@ class ElfContainer(DecompilableContainer):
)
if
hashlib
.
sha1
(
blob_with_reset_build_id
).
hexdigest
()
!=
build_id
:
self
.
source
.
add_comment
(
f
"The file (
{
self
.
source
.
path
}
) has been modified after NT_GNU_BUILD_ID has been applied"
)
logger
.
warning
(
"The file (%s) has been modified after NT_GNU_BUILD_ID has been applied"
,
self
.
source
.
path
,
f
"The file (
{
self
.
source
.
path
}
) has been modified after NT_GNU_BUILD_ID has been applied"
)
logger
.
debug
(
"Expected value: %s Current value: %s"
,
...
...
diffoscope/presenters/html/html.py
View file @
9acd83bd
...
...
@@ -247,8 +247,8 @@ def output_node(ctx, difference, path, indentstr, indentnum):
comments
=
""
if
difference
.
comments
:
comments
=
'{1[1]}<div class="comment
{0}">{2}{1[1]}</div>
\n
'
.
format
(
"multiline"
if
len
(
difference
.
comments
)
>
1
else
""
,
comments
=
'{1[1]}<div class="comment{0}">{2}
\n
{1[1]}</div>
\n
'
.
format
(
"
multiline"
if
len
(
difference
.
comments
)
>
1
else
""
,
indent
,
"
\n
"
.
join
(
html
.
escape
(
x
)
for
x
in
difference
.
comments
),
)
...
...