[Git][reproducible-builds/diffoscope][master] 4 commits: Correct a debug message related to compare_meta calls to quote the arguments correctly.

Chris Lamb gitlab at salsa.debian.org
Fri Jan 24 15:53:12 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
3e3a18de by Chris Lamb at 2020-01-24T14:48:16+00:00
Correct a debug message related to compare_meta calls to quote the arguments correctly.

- - - - -
412fef11 by Chris Lamb at 2020-01-24T14:48:36+00:00
Turn down the "volume" for a recommendation in a comment.

- - - - -
7765669a by Chris Lamb at 2020-01-24T14:49:20+00:00
No longer raise a KeyError exception if we request an invalid member from a directory container.

This reverts commit c98e40ffdbef076ffa91fa2d81ceb0fd6a1cd677.

- - - - -
bdd1a5ec by Chris Lamb at 2020-01-24T15:39:05+00:00
releasing package diffoscope version 136

- - - - -


4 changed files:

- debian/changelog
- diffoscope/__init__.py
- diffoscope/comparators/directory.py
- diffoscope/comparators/utils/container.py


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,69 @@
-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 at debian.org>  Tue, 14 Jan 2020 14:48:23 +0000
+ -- Chris Lamb <lamby at debian.org>  Fri, 24 Jan 2020 15:38:57 +0000
 
 diffoscope (135) unstable; urgency=medium
 


=====================================
diffoscope/__init__.py
=====================================
@@ -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 = "135"
+VERSION = "136"


=====================================
diffoscope/comparators/directory.py
=====================================
@@ -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
=====================================
@@ -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)
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/compare/4e40f75b5b2e1754fcebe948dde686a5ed0fb0fd...bdd1a5ecab7408bcc3197685d638a4ce5d6793c4

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/compare/4e40f75b5b2e1754fcebe948dde686a5ed0fb0fd...bdd1a5ecab7408bcc3197685d638a4ce5d6793c4
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200124/ec7fd039/attachment.htm>


More information about the rb-commits mailing list