From fb01a66f482a742805ea40fb2b7162b062b38021 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Nov 2015 09:56:51 +0000 Subject: bitbake: fetch2: Remove crazy code in unpack 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. (Bitbake rev: 37214ea9bf484998b75dbc1200d53f1afc5257ed) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/__init__.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'bitbake/lib/bb/fetch2/__init__.py') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 288a1c8fd0..d66a212cb3 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) -- cgit v1.2.3-54-g00ecf