Follow symlinks in the lookup

When the user gives a folder to the lookup, it's expected to work,
whatever the content of the folder is.

In the Zuul v3 case, we are symlinking the role that are checked
out as part of the Zuul dependency resolution, for example when
Depends-On is used.

If we don't follow symlinks, those checkout roles aren't part
of the repo build process, and won't be build.

Change-Id: Ic09f6a9ee28e3f7919226f22b803ee1a1b8ad53d
(cherry picked from commit 6d976477df)
This commit is contained in:
Jean-Philippe Evrard 2017-12-03 12:25:36 +00:00 committed by Jesse Pretorius (odyssey4me)
parent 91ec173639
commit 11aed400f8
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ class DependencyFileProcessor(object):
:type path: ``str``
:returns: ``list``
"""
paths = os.walk(os.path.abspath(path))
paths = os.walk(os.path.abspath(path), followlinks=True)
files = list()
for fpath, _, afiles in paths:
for afile in afiles: