summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-06-07 06:02:26 -0500
committerAndrew Wilcox <AWilcox@Wilcox-Tech.com>2016-06-07 06:02:26 -0500
commitbc50a338cc0d27aed255c454b24dd015603f108d (patch)
tree0fbfe01b694d16c05a280b2a988ad4c91d545fdd
parent065f3a5aa5bba644b1fe457b422d097aaf5154b1 (diff)
downloadapkkit-bc50a338cc0d27aed255c454b24dd015603f108d.tar.gz
apkkit-bc50a338cc0d27aed255c454b24dd015603f108d.tar.bz2
apkkit-bc50a338cc0d27aed255c454b24dd015603f108d.tar.xz
apkkit-bc50a338cc0d27aed255c454b24dd015603f108d.zip
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.
-rw-r--r--apkkit/io/apkfile.py4
1 files 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)