aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-09-22 13:59:21 -0700
committerKhem Raj <raj.khem@gmail.com>2010-09-23 07:51:29 -0700
commit66f27716906ec344a6b9628ed5d0f21a3104718f (patch)
treeca4e7da30bb56704c6e5b966f973d67e90c57b94 /lib
parente35d6a3ab40a1a34fe466c4dcf6519373fde8442 (diff)
downloadopenembedded-66f27716906ec344a6b9628ed5d0f21a3104718f.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 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>
Diffstat (limited to 'lib')
-rw-r--r--lib/oe/patch.py1
1 files changed, 1 insertions, 0 deletions
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