summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/patch.py
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-09-22 13:59:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-10 09:57:09 +0100
commit7a78b2104cd5102f4963c174e9538f6f0d890295 (patch)
tree25578b93cbcdd1206d514a93d58b4ef68aa8014d /meta/lib/oe/patch.py
parent7f92587c3d0c1140d1d11d98ffaf6e63e42a5c28 (diff)
downloadast2050-yocto-poky-7a78b2104cd5102f4963c174e9538f6f0d890295.zip
ast2050-yocto-poky-7a78b2104cd5102f4963c174e9538f6f0d890295.tar.gz
oe/patch.py: Remove series file during Clean()
Currently if there is a failed do_patch the series files get appended so if there were two patches a.patch b.patch and b.patch failed during next run it would append a.patch again a.patch b.patch a.patch and this would keep growing. We can remove series file in Clean() because we populate it in Import() anyway (From OE-Core rev: fd07744ae549c2f43b18d53e6ed16c20df6b4ef3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Eric BĂ©nard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/patch.py')
-rw-r--r--meta/lib/oe/patch.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 16d3d08..1406e19 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -198,6 +198,7 @@ class QuiltTree(PatchSet):
def Clean(self):
try:
self._runcmd(["pop", "-a", "-f"])
+ oe.path.remove(os.path.join(self.dir, "patches","series"))
except Exception:
pass
self.initialized = True
OpenPOWER on IntegriCloud