Prune one string matching thingy.

This commit is contained in:
Jussi Pakkanen 2015-04-25 18:11:17 +03:00
parent ff7c8b1647
commit 1f602ff155
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ class BuildTarget():
# Holder unpacking. Ugly.
if hasattr(s, 'held_object'):
s = s.held_object
if isinstance(s, str) or isinstance(s, File): # FIXME, accept only File objects
if isinstance(s, File):
if not s in added_sources:
self.sources.append(s)
added_sources[s] = True