[Reproducible-builds] [dh-python] 182/183: Ensure that Depends and the likes are written in a stable order

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit 969772fec97c1d278489fc1e9da51cb95a36ac97
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Aug 24 20:47:50 2014 +0000

    Ensure that Depends and the likes are written in a stable order
    
    This is needed for reproducible builds.
---
 dhpython/depends.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dhpython/depends.py b/dhpython/depends.py
index e406fb7..935ddc6 100644
--- a/dhpython/depends.py
+++ b/dhpython/depends.py
@@ -61,17 +61,17 @@ class Dependencies:
     def export_to(self, dh):
         """Fill in debhelper's substvars."""
         prefix = PKG_PREFIX_MAP.get(self.impl, 'misc')
-        for i in self.depends:
+        for i in sorted(self.depends):
             dh.addsubstvar(self.package, '{}:Depends'.format(prefix), i)
-        for i in self.recommends:
+        for i in sorted(self.recommends):
             dh.addsubstvar(self.package, '{}:Recommends'.format(prefix), i)
-        for i in self.suggests:
+        for i in sorted(self.suggests):
             dh.addsubstvar(self.package, '{}:Suggests'.format(prefix), i)
-        for i in self.enhances:
+        for i in sorted(self.enhances):
             dh.addsubstvar(self.package, '{}:Enhances'.format(prefix), i)
-        for i in self.breaks:
+        for i in sorted(self.breaks):
             dh.addsubstvar(self.package, '{}:Breaks'.format(prefix), i)
-        for i in self.rtscripts:
+        for i in sorted(self.rtscripts):
             dh.add_rtupdate(self.package, i)
 
     def __str__(self):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git



More information about the Reproducible-builds mailing list