From 66f27716906ec344a6b9628ed5d0f21a3104718f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 22 Sep 2010 13:59:21 -0700 Subject: oe/patch.py: Remove series file during Clean() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/oe/patch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/oe/patch.py b/lib/oe/patch.py index d7f4ccb9e9..05abccfc1c 100644 --- a/lib/oe/patch.py +++ b/lib/oe/patch.py @@ -192,6 +192,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 -- cgit 1.2.3-korg