From bc50a338cc0d27aed255c454b24dd015603f108d Mon Sep 17 00:00:00 2001 From: Andrew Wilcox Date: Tue, 7 Jun 2016 06:02:26 -0500 Subject: APKFile: correct an egregious oversight involving chain These objects exhaust after a single pass, so the base packages *always* had the contents of *all* their splits. Ouch. --- apkkit/io/apkfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apkkit/io/apkfile.py b/apkkit/io/apkfile.py index 7076927..1257ac6 100644 --- a/apkkit/io/apkfile.py +++ b/apkkit/io/apkfile.py @@ -361,9 +361,9 @@ class APKFile: splits += load_package_split(package) splits = [split for split in splits if split is not None] - exclude_from_base = chain.from_iterable([ + exclude_from_base = list(chain.from_iterable([ [path for path in split['paths']] for split in splits - ]) + ])) for split in splits: split_package = copy(package) -- cgit v1.2.3-70-g09d2