berkshelf/berkshelf — pull request #1178 by mi-wood (2014-05-01 05:43:21+00:00)
Title: Fix infinite lock check

If there is a loop in the dependencies in the lockfile, it will create an infinite loop when checking if it's trusted. Marking the parent dependency before recursing doesn't look like it will affect the validity of the check, but will ensure the same dependency is not checked twice.