* [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories
@ 2012-05-20 17:16 Andrei Gherzan
2012-05-21 8:25 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Andrei Gherzan @ 2012-05-20 17:16 UTC (permalink / raw)
To: openembedded-core
In this way we avoid failing the build while trying to fetch local
directories.
[YOCTO #2475]
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
bitbake/lib/bb/fetch2/__init__.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 9864595..e3ac4d2 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -671,6 +671,11 @@ class FetchMethod(object):
"""
Is localpath something that can be represented by a checksum?
"""
+
+ # We cannot compute checksums for directories
+ if os.path.isdir(urldata.localpath) == True:
+ return False
+
return True
def recommends_checksum(self, urldata):
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories
2012-05-20 17:16 [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories Andrei Gherzan
@ 2012-05-21 8:25 ` Richard Purdie
2012-05-21 8:28 ` Andrei Gherzan
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-05-21 8:25 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Sun, 2012-05-20 at 20:16 +0300, Andrei Gherzan wrote:
> In this way we avoid failing the build while trying to fetch local
> directories.
>
> [YOCTO #2475]
>
> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> ---
> bitbake/lib/bb/fetch2/__init__.py | 5 +++++
> 1 file changed, 5 insertions(+)
Please send bitbake patches to the bitbake-devel list in future. I've
applied this one directly since there is a clear need to fix problems
though, thanks!
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories
2012-05-21 8:25 ` Richard Purdie
@ 2012-05-21 8:28 ` Andrei Gherzan
0 siblings, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2012-05-21 8:28 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 629 bytes --]
On Mon, May 21, 2012 at 11:25 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Sun, 2012-05-20 at 20:16 +0300, Andrei Gherzan wrote:
> > In this way we avoid failing the build while trying to fetch local
> > directories.
> >
> > [YOCTO #2475]
> >
> > Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> > ---
> > bitbake/lib/bb/fetch2/__init__.py | 5 +++++
> > 1 file changed, 5 insertions(+)
>
> Please send bitbake patches to the bitbake-devel list in future. I've
> applied this one directly since there is a clear need to fix problems
> though, thanks!
>
>
I will. Thanks.
@g
[-- Attachment #2: Type: text/html, Size: 1052 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-21 8:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-20 17:16 [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories Andrei Gherzan
2012-05-21 8:25 ` Richard Purdie
2012-05-21 8:28 ` Andrei Gherzan
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.