Use an OrderedDict for helptext, making the build reproducible

Closes #1346
This commit is contained in:
Chris Lamb 2016-07-18 12:14:48 +02:00 committed by Gianfranco Costamagna
parent 95ce40b1a4
commit 69f8d3c3f7
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import stat
import sys
import textwrap
import traceback
import collections
from . import __version__
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)
return self.exit_code
helptext = {}
helptext = collections.OrderedDict()
helptext['patterns'] = textwrap.dedent('''
Exclusion patterns support four separate styles, fnmatch, shell, regular
expressions and path prefixes. By default, fnmatch is used. If followed