mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
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 (From OE-Core rev: fd07744ae549c2f43b18d53e6ed16c20df6b4ef3) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user