From patchwork Tue May 10 05:26:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [28/30] oe/patch.py: Remove series file during Clean() Date: Tue, 10 May 2011 05:26:27 -0000 From: Saul Wold X-Patchwork-Id: 3595 Message-Id: <5b4f5ac5548dc44f88eaf9b7994b2fec77a7baf5.1305004776.git.sgw@linux.intel.com> To: openembedded-core@lists.openembedded.org Cc: From: Khem Raj 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 Acked-by: Chris Larson Acked-by: Eric Bénard --- meta/lib/oe/patch.py | 1 + 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