diff options
author | Patrice Arruda <patricearruda@google.com> | 2019-03-08 18:18:15 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-03-08 18:18:15 -0800 |
commit | 9d82dc12b99acd112bc7cf93afc429663a9a1195 (patch) | |
tree | d86bacf48300844a69e546c5008d40094b8d4ec4 | |
parent | 17ffc6bb8d46c74847db7eb339f4073cebf2429a (diff) | |
parent | dcf31d03f4e3c2455e2a722fe504c21d33f39a07 (diff) | |
download | android_build_blueprint-9d82dc12b99acd112bc7cf93afc429663a9a1195.tar.gz android_build_blueprint-9d82dc12b99acd112bc7cf93afc429663a9a1195.tar.bz2 android_build_blueprint-9d82dc12b99acd112bc7cf93afc429663a9a1195.zip |
Merge remote-tracking branch 'aosp/upstream' into merge_upstream am: 8610dfd441 am: 4fd7ad26c2
am: dcf31d03f4
Change-Id: I00472e469f0213e4db0f52039f682f2a2bb48c5c
-rw-r--r-- | context.go | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -604,15 +604,6 @@ type fileParseContext struct { doneVisiting chan struct{} } -func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []error) { - baseDir := filepath.Dir(rootFile) - pathsToParse, err := c.ListModulePaths(baseDir) - if err != nil { - return nil, []error{err} - } - return c.ParseFileList(baseDir, pathsToParse) -} - // ParseBlueprintsFiles parses a set of Blueprints files starting with the file // at rootFile. When it encounters a Blueprints file with a set of subdirs // listed it recursively parses any Blueprints files found in those @@ -622,6 +613,15 @@ func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []e // which the future output will depend is returned. This list will include both // Blueprints file paths as well as directory paths for cases where wildcard // subdirs are found. +func (c *Context) ParseBlueprintsFiles(rootFile string) (deps []string, errs []error) { + baseDir := filepath.Dir(rootFile) + pathsToParse, err := c.ListModulePaths(baseDir) + if err != nil { + return nil, []error{err} + } + return c.ParseFileList(baseDir, pathsToParse) +} + func (c *Context) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []error) { |