[bitbake-devel] [PATCH] fetch2: Remove crazy code in unpack
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Nov 10 09:56:51 UTC 2015
This looks reasonable until you realise self.localpath is a function. Data
expansion of something which isn't a string is the original value so this
code just wastes CPU cycles and makes no sense. Remove it.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bitbake/lib/bb/fetch2/__init__.py | 3 ---
1 file changed, 3 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 288a1c8..d66a212 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1686,9 +1686,6 @@ class Fetch(object):
ud = self.ud[u]
ud.setup_localpath(self.d)
- if self.d.expand(self.localpath) is None:
- continue
-
if ud.lockfile:
lf = bb.utils.lockfile(ud.lockfile)
More information about the bitbake-devel
mailing list