Skip to content

Commit

Permalink
process_build_outputs.py: Fix bugs with tar and --include-*
Browse files Browse the repository at this point in the history
  • Loading branch information
Eloston committed Mar 28, 2018
1 parent ee34616 commit 2274ed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/packaging/shared/process_build_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _handle_archive(args):
for include_path in _include_paths(args):
output_tar.add(
str(include_path),
str(args.output.with_suffix('').stem / include_path.name))
str(Path(args.output.with_suffix('').stem) / include_path.name))
else:
args.parser.error('Unknown archive extension with name: %s' % args.output.name)

Expand Down Expand Up @@ -152,11 +152,11 @@ def main(arg_list=None):
' by the file extension. Currently supported types: .zip and'
' .tar.{gz,bz2,xz}'))
parser_archive.add_argument(
'--include-file', type=Path, metavar='PATH', action='append', default=tuple(),
'--include-file', type=Path, metavar='PATH', action='append', default=list(),
help=('File to include in the root of the archive. Specify'
' multiple times to include multiple files.'))
parser_archive.add_argument(
'--include-dir', type=Path, metavar='PATH', action='append', default=tuple(),
'--include-dir', type=Path, metavar='PATH', action='append', default=list(),
help=('Contents of specified directory to include at the root of the'
' archive. For zip files, these contents must only be regular'
' files. Specify multiple times to include multiple dirs.'))
Expand Down

0 comments on commit 2274ed3

Please sign in to comment.