Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
Correct a debug message related to compare_meta calls to quote the arguments correctly.
· 3e3a18de
Chris Lamb
authored
Jan 24, 2020
3e3a18de
Turn down the "volume" for a recommendation in a comment.
· 412fef11
Chris Lamb
authored
Jan 24, 2020
412fef11
No longer raise a KeyError exception if we request an invalid member from a directory container.
· 7765669a
Chris Lamb
authored
Jan 24, 2020
This reverts commit
c98e40ff
.
7765669a
releasing package diffoscope version 136
· bdd1a5ec
Chris Lamb
authored
Jan 24, 2020
bdd1a5ec
Hide whitespace changes
Inline
Side-by-side
debian/changelog
View file @
bdd1a5ec
diffoscope (136)
UNRELEASED
; urgency=medium
diffoscope (136)
unstable
; urgency=medium
* WIP (generated upon release).
[ Chris Lamb ]
* Improvements:
- Support external build tools. (Closes: reproducible-builds/diffoscope#87)
- Fallback to the regular .zip container format for .apk files if apktool
is not available.
- Clarify that "install X" in difference comment messages actually refer to
a system/distribution package.
- Drop the --max-report-size-child and --max-diff-block-lines-parent
options; both deprecated and scheduled for removal in January 2018.
* Bug fixes:
- No longer raise a KeyError exception if we request an invalid member from a
directory container.
* Logging improvements:
- Log a debug-level message if we cannot open a file as container due to a
missing tool in order to assist diagnosing issues.
- If we don't know the HTML output name, don't emit an enigmatic "html
output for" message.
- Add the current PATH environment variable to the "Normalising locale..."
debug-level message.
- Print the "Starting diffoscope $VERSION" line as the first line.
- Correct a debug-level message for compare_meta calls to quote the
arguments correctly.
* Refactoring:
- Add support for alternative container types for a file, allowing for
runtime (vs import time) control of fallbacks such as adding comments.
and append a comment to a difference if we fallback to an inferior
container format due to missing a tool.
- Factor-out the generation of "foo not available in path" difference
comment messages as a helper method in the exception that represents
them.
* Code improvements:
- Tidy diffoscope.main's configure method, factoring out the set of the
Config() global out of the run_diffoscope method and inlining the
functionality of maybe_set_limit, etc.
- Rename diffoscope.locale module to diffoscope.environ as we are modifying
things beyond just the locale (eg. calling tzset(), etc.)
- Drop unused "Difference" import from the APK comparator.
- Drop an assertion that is guaranteed by parallel "if" conditional.
- Add a "noqa" line to avoid a false-positive flake8 "unused import" warning.
- Turn down the "volume" for a recommendation in a comment.
* Release/source-code management:
- Add a .git-blame-ignore-revs file to improve the output of git-blame(1) by
ignoring large changes when introducing the Black source code reformatter
and update the CONTRIBUTING.md guide on how to optionally use it locally.
- Convert CONTRIBUTING.rst to CONTRIBUTING.md and include it in the
PyPI.org release.
* Test improvements
- Refresh and update the fixtures for the .ico tests to match the latest
version of Imagemagick in Debian unstable.
[ Holger Levsen ]
* Bump Standards Version to 4.5.0, no changes needed.
[ Marc Herbert ]
* Search for expected keywords in the output of cbfstool tests and not a
specific output. (Closes: reproducible-builds/diffoscope!42)
-- Chris Lamb
<lamby
@
debian.org
>
Tue
,
1
4 Jan 2020 1
4:48:23
+0000
-- Chris Lamb
<lamby
@
debian.org
>
Fri
,
2
4 Jan 2020 1
5:38:57
+0000
diffoscope (135) unstable; urgency=medium
...
...
diffoscope/__init__.py
View file @
bdd1a5ec
...
...
@@ -17,4 +17,4 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
VERSION
=
"
13
5
"
VERSION
=
"
13
6
"
diffoscope/comparators/directory.py
View file @
bdd1a5ec
...
...
@@ -153,7 +153,7 @@ def compare_meta(path1, path2):
)
return
[]
logger
.
debug
(
'
compare_meta(%
s
, %
s
)
'
,
path1
,
path2
)
logger
.
debug
(
'
compare_meta(%
r
, %
r
)
'
,
path1
,
path2
)
differences
=
[]
# Don't run any commands if any of the paths do not exist
...
...
@@ -266,11 +266,9 @@ class DirectoryContainer(Container):
if
not
os
.
path
.
islink
(
member_path
)
and
os
.
path
.
isdir
(
member_path
):
return
FilesystemDirectory
(
member_path
)
path
=
os
.
path
.
join
(
self
.
source
.
path
,
member_name
)
if
not
os
.
path
.
exists
(
path
):
raise
KeyError
(
"
%s not found in directory
"
%
member_name
)
return
FilesystemFile
(
path
,
container
=
self
)
return
FilesystemFile
(
os
.
path
.
join
(
self
.
source
.
path
,
member_name
),
container
=
self
)
def
comparisons
(
self
,
other
):
my_members
=
collections
.
OrderedDict
(
self
.
get_adjusted_members_sizes
())
...
...
diffoscope/comparators/utils/container.py
View file @
bdd1a5ec
...
...
@@ -75,7 +75,7 @@ class Container(metaclass=abc.ABCMeta):
def
get_filtered_members
(
self
):
# If your get_member implementation is O(n) then this will be O(n^2)
# cost. In such cases it is
HIGHLY RECOMMENDED
to override this as well
# cost. In such cases it is
recommended
to override this as well
for
name
in
filter_excludes
(
self
.
get_member_names
()):
yield
name
,
self
.
get_member
(
name
)
...
...