diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-09-22 13:59:21 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-10 09:51:56 +0100 |
commit | fd07744ae549c2f43b18d53e6ed16c20df6b4ef3 (patch) | |
tree | c260e5ce6a5b27a0e8690f828c60ba89157f760b /meta | |
parent | 06e5827be5efbfbbb710f8a5332722266cd23c5e (diff) | |
download | openembedded-core-fd07744ae549c2f43b18d53e6ed16c20df6b4ef3.tar.gz openembedded-core-fd07744ae549c2f43b18d53e6ed16c20df6b4ef3.tar.bz2 openembedded-core-fd07744ae549c2f43b18d53e6ed16c20df6b4ef3.zip |
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 'meta')
-rw-r--r-- | 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 16d3d081ba..1406e1950c 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 |