On Thu, 2021-01-21 at 23:31 +0100, Tomasz Dziendzielski wrote: > Add relative path if file is under directory. > > [YOCTO #13738] > > Signed-off-by: Tomasz Dziendzielski <tomasz.dziendziel...@gmail.com> > --- > scripts/lib/devtool/standard.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py > index f7d8a82117..7b62b7e7b8 100644 > --- a/scripts/lib/devtool/standard.py > +++ b/scripts/lib/devtool/standard.py > @@ -474,7 +474,11 @@ def symlink_oelocal_files_srctree(rd,srctree): > destpth = os.path.join(srctree, relpth, fn) > if os.path.exists(destpth): > os.unlink(destpth) > - os.symlink('oe-local-files/%s' % fn, destpth) > + if relpth != '.': > + back_relpth = os.path.relpath(local_files_dir, root) > + os.symlink('%s/oe-local-files/%s/%s' % (back_relpth, > relpth, fn), destpth) > + else: > + os.symlink('oe-local-files/%s' % fn, destpth) > addfiles.append(os.path.join(relpth, fn)) > if addfiles: > bb.process.run('git add %s' % ' '.join(addfiles), cwd=srctree)
Are there some extra test cases we should be adding to account for some of these changes? They suggest we have some missing coverage. oe-selftest -r devtool and see meta/lib/oeqa/selftest/cases/ Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147100): https://lists.openembedded.org/g/openembedded-core/message/147100 Mute This Topic: https://lists.openembedded.org/mt/80017176/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-