mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
lib/oe: sync with OE.dev
Most notable change is the move to creating symlinks to patches in the metadata tree rather than copying them. Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
7b74364120
commit
1fbcd2ca17
@@ -1,3 +1,5 @@
|
||||
import oe.path
|
||||
|
||||
class NotFoundError(Exception):
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
@@ -234,15 +236,10 @@ class QuiltTree(PatchSet):
|
||||
if not self.initialized:
|
||||
self.InitFromDir()
|
||||
PatchSet.Import(self, patch, force)
|
||||
|
||||
args = ["import", "-p", patch["strippath"]]
|
||||
if force:
|
||||
args.append("-f")
|
||||
args.append("-dn")
|
||||
args.append(patch["file"])
|
||||
|
||||
self._runcmd(args)
|
||||
|
||||
oe.path.symlink(patch["file"], self._quiltpatchpath(patch["file"]))
|
||||
f = open(os.path.join(self.dir, "patches","series"), "a");
|
||||
f.write(os.path.basename(patch["file"]) + " -p" + patch["strippath"]+"\n")
|
||||
f.close()
|
||||
patch["quiltfile"] = self._quiltpatchpath(patch["file"])
|
||||
patch["quiltfilemd5"] = bb.utils.md5_file(patch["quiltfile"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user