]> code.ossystems Code Review - openembedded-core.git/commit
oe.path: Add copyhardlink() helper function
authorPaul Barker <paul@betafive.co.uk>
Fri, 3 May 2019 11:54:47 +0000 (11:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 May 2019 09:46:04 +0000 (10:46 +0100)
commit5437efa16f9bec914e417c6c939a39c247084f52
treee2ad39d2b8437136258fdcad2f6a90d7ee58e41c
parent7ac6ac8eb8fc3c623eba0e245fd9049dc6e2dd86
oe.path: Add copyhardlink() helper function

This function creates hard links if possible, falling back to copying
the file if the destination is on a different volume to the source.

The docstring for copyhardlinktree() is also updated to make the
difference between the two functions a little clearer.

Signed-off-by: Paul Barker <paul@betafive.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/path.py