diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-01-01 12:29:55 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-19 11:11:57 +0000 |
| commit | c5d4475bb35de90dbcc96a827c917e7d2615661f (patch) | |
| tree | 2c73522c2ebd408c09f5a4c4526f27ff0995fc8f | |
| parent | aab915c69aa8ff82598a0aec39dc791f758f5ef8 (diff) | |
| download | poky-c5d4475bb35de90dbcc96a827c917e7d2615661f.tar.gz | |
lib/oe/reproducible: correctly set .git location when recursively looking for git repos
(From OE-Core rev: 1b41f1a38d43c1f0ef351bd6959a77821886a8b6)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ffdaa1a0527691d66dd28e86bd015bfad7a020f6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oe/reproducible.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/reproducible.py b/meta/lib/oe/reproducible.py index 204b9bd734..0938e4cb39 100644 --- a/meta/lib/oe/reproducible.py +++ b/meta/lib/oe/reproducible.py | |||
| @@ -41,7 +41,7 @@ def find_git_folder(d, sourcedir): | |||
| 41 | for root, dirs, files in os.walk(workdir, topdown=True): | 41 | for root, dirs, files in os.walk(workdir, topdown=True): |
| 42 | dirs[:] = [d for d in dirs if d not in exclude] | 42 | dirs[:] = [d for d in dirs if d not in exclude] |
| 43 | if '.git' in dirs: | 43 | if '.git' in dirs: |
| 44 | return root | 44 | return os.path.join(root, ".git") |
| 45 | 45 | ||
| 46 | bb.warn("Failed to find a git repository in WORKDIR: %s" % workdir) | 46 | bb.warn("Failed to find a git repository in WORKDIR: %s" % workdir) |
| 47 | return None | 47 | return None |
