* [PATCH] oe/patch.py: Remove series file during Clean()
@ 2010-09-22 21:02 Khem Raj
2010-09-22 21:36 ` Chris Larson
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2010-09-22 21:02 UTC (permalink / raw)
To: openembedded-devel
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>
---
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
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] oe/patch.py: Remove series file during Clean()
2010-09-22 21:02 [PATCH] oe/patch.py: Remove series file during Clean() Khem Raj
@ 2010-09-22 21:36 ` Chris Larson
2010-09-22 22:30 ` Eric Bénard
0 siblings, 1 reply; 3+ messages in thread
From: Chris Larson @ 2010-09-22 21:36 UTC (permalink / raw)
To: openembedded-devel
On Wed, Sep 22, 2010 at 2:02 PM, Khem Raj <raj.khem@gmail.com> wrote:
> 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>
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] oe/patch.py: Remove series file during Clean()
2010-09-22 21:36 ` Chris Larson
@ 2010-09-22 22:30 ` Eric Bénard
0 siblings, 0 replies; 3+ messages in thread
From: Eric Bénard @ 2010-09-22 22:30 UTC (permalink / raw)
To: openembedded-devel
Le 22/09/2010 23:36, Chris Larson a écrit :
> On Wed, Sep 22, 2010 at 2:02 PM, Khem Raj<raj.khem@gmail.com> wrote:
>
>> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-22 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 21:02 [PATCH] oe/patch.py: Remove series file during Clean() Khem Raj
2010-09-22 21:36 ` Chris Larson
2010-09-22 22:30 ` Eric Bénard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.