summaryrefslogtreecommitdiffstats
path: root/meta/lib
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
parent7f92587c3d0c1140d1d11d98ffaf6e63e42a5c28 (diff)
downloadpoky-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')
-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 16d3d081ba..1406e1950c 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -198,6 +198,7 @@ class QuiltTree(PatchSet):
198 def Clean(self): 198 def Clean(self):
199 try: 199 try:
200 self._runcmd(["pop", "-a", "-f"]) 200 self._runcmd(["pop", "-a", "-f"])
201 oe.path.remove(os.path.join(self.dir, "patches","series"))
201 except Exception: 202 except Exception:
202 pass 203 pass
203 self.initialized = True 204 self.initialized = True