[Git][reproducible-builds/diffoscope][master] Rework and comment logic determining a default for exclude_directory_metadata.

Chris Lamb gitlab at salsa.debian.org
Mon Feb 18 23:53:53 CET 2019


Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
12e25406 by Chris Lamb at 2019-02-18T22:03:01Z
Rework and comment logic determining a default for exclude_directory_metadata.

- - - - -


1 changed file:

- diffoscope/main.py


Changes:

=====================================
diffoscope/main.py
=====================================
@@ -470,10 +470,11 @@ def run_diffoscope(parsed_args):
                 return 1
     else:
         if Config().exclude_directory_metadata is None:
+            # Default to ignoring metadata directory...
+            Config().exclude_directory_metadata = True
             if os.path.isdir(path1) and os.path.isdir(path2):
+                # ... except if we passed two directories.
                 Config().exclude_directory_metadata = False
-            else:
-                Config().exclude_directory_metadata = True
 
         logger.debug('Starting comparison')
         with Progress():



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/12e2540671f57e8b459eb95261b5012e69312f4a

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/12e2540671f57e8b459eb95261b5012e69312f4a
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/20190218/b55f3574/attachment.html>


More information about the rb-commits mailing list