]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe/patch.py: Remove series file during Clean()
authorKhem Raj <raj.khem@gmail.com>
Wed, 22 Sep 2010 20:59:21 +0000 (13:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 May 2011 08:51:56 +0000 (09:51 +0100)
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

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>
meta/lib/oe/patch.py

index 16d3d081baf98c70ea49f87a40eba75167c3f632..1406e1950c70efd4fd18e9a7bcfdcc6ae4e3ed53 100644 (file)
@@ -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