Skip to content

Commit

Permalink
Merge pull request tweag#80 from tweag/fix_possible_index_error
Browse files Browse the repository at this point in the history
Fix out of bound error
  • Loading branch information
guibou authored May 7, 2019
2 parents 38833b9 + 3c304fd commit 5ffb8a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nixpkgs/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def _nixpkgs_package_impl(repository_ctx):
for line in exec_result.stderr.splitlines():
line = line.split(sep=' ')

# Interesting lines contains at least 3 words
if len(line) < 3:
continue

# Heuristic: a dependency is something which looks like:
# evaluating file FILE
# copied source FILE
Expand Down

0 comments on commit 5ffb8a4

Please sign in to comment.