Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soapy1 committed Nov 22, 2016
1 parent 66d4db7 commit 9a8dda8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conda_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ def get_files_with_prefix(m, files, prefix):
ignore_types = set()
if not hasattr(ignore_files, "__iter__"):
if ignore_files is True:
ignore_types.update((FileMode.text, FileMode.binary))
ignore_types.update((FileMode.text.name, FileMode.binary.name))
ignore_files = []
if not m.get_value('build/detect_binary_files_with_prefix', True):
ignore_types.update(('binary',))
ignore_types.update((FileMode.binary.name,))
# files_with_prefix is a list of tuples containing (prefix_placeholder, file_mode)
ignore_files.extend(
f[2] for f in files_with_prefix if f[1] in ignore_types and f[2] not in ignore_files)
Expand Down

0 comments on commit 9a8dda8

Please sign in to comment.