Browse Source

Merge pull request #1348 from LocutusOfBorg/reproducible-build-stable

Use an OrderedDict for helptext, making the build reproducible
enkore 9 năm trước cách đây
mục cha
commit
bc56cefde7
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      borg/archiver.py

+ 2 - 1
borg/archiver.py

@@ -14,6 +14,7 @@ import stat
 import sys
 import sys
 import textwrap
 import textwrap
 import traceback
 import traceback
+import collections
 
 
 from . import __version__
 from . import __version__
 from .helpers import Error, location_validator, archivename_validator, format_line, format_time, format_file_size, \
 from .helpers import Error, location_validator, archivename_validator, format_line, format_time, format_file_size, \
@@ -736,7 +737,7 @@ class Archiver:
         Cache.break_lock(repository)
         Cache.break_lock(repository)
         return self.exit_code
         return self.exit_code
 
 
-    helptext = {}
+    helptext = collections.OrderedDict()
     helptext['patterns'] = textwrap.dedent('''
     helptext['patterns'] = textwrap.dedent('''
         Exclusion patterns support four separate styles, fnmatch, shell, regular
         Exclusion patterns support four separate styles, fnmatch, shell, regular
         expressions and path prefixes. By default, fnmatch is used. If followed
         expressions and path prefixes. By default, fnmatch is used. If followed