diff options
Diffstat (limited to 'meta/classes/devtool-source.bbclass')
-rw-r--r-- | meta/classes/devtool-source.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/devtool-source.bbclass b/meta/classes/devtool-source.bbclass index 3e24800dcb..2e0070486b 100644 --- a/meta/classes/devtool-source.bbclass +++ b/meta/classes/devtool-source.bbclass | |||
@@ -92,9 +92,9 @@ python devtool_post_unpack() { | |||
92 | for fname in local_files: | 92 | for fname in local_files: |
93 | f.write('%s\n' % fname) | 93 | f.write('%s\n' % fname) |
94 | 94 | ||
95 | if os.path.dirname(srcsubdir) != workdir: | 95 | if srcsubdir.startswith(unpackdir) and os.path.dirname(srcsubdir) != unpackdir: |
96 | # Handle if S is set to a subdirectory of the source | 96 | # Handle if S is set to a subdirectory of the source |
97 | srcsubdir = os.path.join(workdir, os.path.relpath(srcsubdir, workdir).split(os.sep)[0]) | 97 | srcsubdir = os.path.normpath(os.path.join(unpackdir, os.path.relpath(srcsubdir, unpackdir).split(os.sep)[0])) |
98 | 98 | ||
99 | scriptutils.git_convert_standalone_clone(srcsubdir) | 99 | scriptutils.git_convert_standalone_clone(srcsubdir) |
100 | 100 | ||
@@ -179,9 +179,9 @@ python devtool_post_patch() { | |||
179 | # (otherwise we'd likely be left with identical commits that have different hashes) | 179 | # (otherwise we'd likely be left with identical commits that have different hashes) |
180 | bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir) | 180 | bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir) |
181 | bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir) | 181 | bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir) |
182 | bb.process.run('git tag -f devtool-patched', cwd=srcsubdir) | 182 | bb.process.run('git tag -f --no-sign devtool-patched', cwd=srcsubdir) |
183 | if os.path.exists(os.path.join(srcsubdir, '.gitmodules')): | 183 | if os.path.exists(os.path.join(srcsubdir, '.gitmodules')): |
184 | bb.process.run('git submodule foreach --recursive "git tag -f devtool-patched"', cwd=srcsubdir) | 184 | bb.process.run('git submodule foreach --recursive "git tag -f --no-sign devtool-patched"', cwd=srcsubdir) |
185 | 185 | ||
186 | } | 186 | } |
187 | 187 | ||