diff options
Diffstat (limited to 'meta/lib/oe/reproducible.py')
-rw-r--r-- | meta/lib/oe/reproducible.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/lib/oe/reproducible.py b/meta/lib/oe/reproducible.py index 1957c97434..0270024a83 100644 --- a/meta/lib/oe/reproducible.py +++ b/meta/lib/oe/reproducible.py | |||
@@ -47,7 +47,7 @@ import bb | |||
47 | # 2. If there is a git checkout, use the last git commit timestamp. | 47 | # 2. If there is a git checkout, use the last git commit timestamp. |
48 | # Git does not preserve file timestamps on checkout. | 48 | # Git does not preserve file timestamps on checkout. |
49 | # | 49 | # |
50 | # 3. Use the mtime of "known" files such as NEWS, CHANGLELOG, ... | 50 | # 3. Use the mtime of "known" files such as NEWS, CHANGELOG, ... |
51 | # This works for well-kept repositories distributed via tarball. | 51 | # This works for well-kept repositories distributed via tarball. |
52 | # | 52 | # |
53 | # 4. Use the modification time of the youngest file in the source tree, if | 53 | # 4. Use the modification time of the youngest file in the source tree, if |
@@ -75,10 +75,11 @@ def get_source_date_epoch_from_known_files(d, sourcedir): | |||
75 | return source_date_epoch | 75 | return source_date_epoch |
76 | 76 | ||
77 | def find_git_folder(d, sourcedir): | 77 | def find_git_folder(d, sourcedir): |
78 | # First guess: UNPACKDIR/git | 78 | # First guess: UNPACKDIR/BB_GIT_DEFAULT_DESTSUFFIX |
79 | # This is the default git fetcher unpack path | 79 | # This is the default git fetcher unpack path |
80 | unpackdir = d.getVar('UNPACKDIR') | 80 | unpackdir = d.getVar('UNPACKDIR') |
81 | gitpath = os.path.join(unpackdir, "git/.git") | 81 | default_destsuffix = d.getVar('BB_GIT_DEFAULT_DESTSUFFIX') |
82 | gitpath = os.path.join(unpackdir, default_destsuffix, ".git") | ||
82 | if os.path.isdir(gitpath): | 83 | if os.path.isdir(gitpath): |
83 | return gitpath | 84 | return gitpath |
84 | 85 | ||