[oe-commits] Khem Raj : oe/patch.py: Remove series file during Clean()

git version control git at git.openembedded.org
Thu Sep 23 14:53:46 UTC 2010


Module: openembedded.git
Branch: master
Commit: 66f27716906ec344a6b9628ed5d0f21a3104718f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=66f27716906ec344a6b9628ed5d0f21a3104718f

Author: Khem Raj <raj.khem at gmail.com>
Date:   Wed Sep 22 13:59:21 2010 -0700

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

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Acked-by: Chris Larson <chris_larson at mentor.com>
Acked-by: Eric Bénard <eric at eukrea.com>

---

 lib/oe/patch.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/oe/patch.py b/lib/oe/patch.py
index d7f4ccb..05abccf 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





More information about the Openembedded-commits mailing list