[Git][reproducible-builds/diffoscope][master] Support showing "Ordering differences only" within .dsc field values. (Closes:...

Chris Lamb (@lamby) gitlab at salsa.debian.org
Wed Dec 29 11:47:36 UTC 2021



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
dcd83528 by Chris Lamb at 2021-12-29T11:46:27+00:00
Support showing "Ordering differences only" within .dsc field values. (Closes: Debian:#1002002, reproducible-builds/diffoscope#297)

- - - - -


1 changed file:

- diffoscope/comparators/debian.py


Changes:

=====================================
diffoscope/comparators/debian.py
=====================================
@@ -173,9 +173,20 @@ class DebControlFile(File):
             if field in other_deb822:
                 other_value = other_deb822.get_as_string(field).lstrip()
 
+            comment = None
+            if my_value != other_value and sorted(my_value.split()) == sorted(
+                other_value.split()
+            ):
+                comment = "Ordering differences only"
+
             differences.append(
                 Difference.from_text(
-                    my_value, other_value, self.path, other.path, source=field
+                    my_value,
+                    other_value,
+                    self.path,
+                    other.path,
+                    source=field,
+                    comment=comment,
                 )
             )
 



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/dcd8352819865e6e2ec47fe0e040d95ef1a329da
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/20211229/bf5536c3/attachment.htm>


More information about the rb-commits mailing list