Skip to content

Commit

Permalink
Merge pull request #17 from boegel/iterable-builddep
Browse files Browse the repository at this point in the history
fix filtering of duplicates in builddependencies method
  • Loading branch information
bartoldeman authored Mar 15, 2019
2 parents e9bcc8f + 4945275 commit 33c46df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/framework/easyconfig/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,9 @@ def builddependencies(self):

if 'builddependencies' in self.iterate_options and not self.iterating:
# flatten and remove duplicates (can't use 'nub', since dict values are not hashable)
all_builddeps = flatten(builddeps)
builddeps = []
for dep in flatten(builddeps):
for dep in all_builddeps:
if dep not in builddeps:
builddeps.append(dep)

Expand Down

0 comments on commit 33c46df

Please sign in to comment.