Skip to content

Commit

Permalink
Merge pull request #14 from mr-c/reproducible_build
Browse files Browse the repository at this point in the history
Make the build reproducible
  • Loading branch information
porchard authored Jul 7, 2020
2 parents 6069f4e + 452742b commit 8fbd929
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/scripts/mkarv
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def parse_arguments():
"""each line contains a fragment length and count. It may """
))

parser.add_argument('-t', '--template-directory', default=locate_template_directory(sys.argv[0]), help=("""The location of the web app directory template."""))
parser.add_argument('-t', '--template-directory', default='auto', help=("""The location of the web app directory template."""))

parser.add_argument('-v', '--verbose', action='store_true', help='Talk more.')
parser.add_argument('--version', action='version', version=PROGRAM_VERSION)
Expand Down Expand Up @@ -570,6 +570,9 @@ def write_metrics(indent, metrics):
if __name__ == '__main__':
args = parse_arguments()

if args.template_directory == 'auto':
args.template_directory = locate_template_directory(sys.argv[0])

loglevel = args.verbose and logging.DEBUG or logging.INFO
logging.basicConfig(level=loglevel, format=LOGGING_FORMAT)
logger = logging.getLogger(PROGRAM)
Expand Down

0 comments on commit 8fbd929

Please sign in to comment.