1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

classes/lib: Update to explictly create lists where needed

Iterators now return views, not lists in python3. Where we need
lists, handle this explicitly.

(From OE-Core rev: caebd862bac7eed725e0f0321bf50793671b5312)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2016-05-20 11:53:11 +01:00
parent 8587bce564
commit 44e9a0d2fa
20 changed files with 68 additions and 68 deletions
+3 -3
View File
@@ -643,8 +643,8 @@ class PackageManager(object):
def construct_uris(self, uris, base_paths):
def _append(arr1, arr2, sep='/'):
res = []
narr1 = map(lambda a: string.rstrip(a, sep), arr1)
narr2 = map(lambda a: string.lstrip(string.rstrip(a, sep), sep), arr2)
narr1 = [string.rstrip(a, sep) for a in arr1]
narr2 = [string.lstrip(string.rstrip(a, sep), sep) for a in arr2]
for a1 in narr1:
if arr2:
for a2 in narr2:
@@ -1111,7 +1111,7 @@ class RpmPM(PackageManager):
sub_rdep = sub_data.get("RDEPENDS_" + pkg)
if not sub_rdep:
continue
done = bb.utils.explode_dep_versions2(sub_rdep).keys()
done = list(bb.utils.explode_dep_versions2(sub_rdep).keys())
next = done
# Find all the rdepends on dependency chain
while next: