Skip to content

Commit 1a26107

Browse files
woody77Commit Bot
authored andcommitted
[assembly] Resolve issue of cache packages also being listed in base
Remove any pkgs in the 'cache' set that are already in the 'base' set, so that they only exist in one or the other location inside the generated assembly config. Change-Id: Ib630e9d4114977d63ac37a4c8db21ababc4c4d1b Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/638624 Fuchsia-Auto-Submit: Aaron Wood <[email protected]> Reviewed-by: James Robinson <[email protected]> Reviewed-by: James Tucker <[email protected]> Commit-Queue: Auto-Submit <[email protected]>
1 parent bdd459d commit 1a26107

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build/images/assembly/make_assembly_config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ def main():
3939

4040
if args.cache_packages_list is not None:
4141
cache_packages_list = json.load(args.cache_packages_list)
42-
config["cache"] = cache_packages_list
42+
43+
# Strip all base pkgs from the cache pkgs set, so there are no
44+
# duplicates across the two sets.
45+
cache_packages_set = set(cache_packages_list)
46+
cache_packages_set.difference_update(config["base"])
47+
48+
config["cache"] = list(sorted(cache_packages_set))
4349

4450
extra_packages = []
4551
if args.extra_files_packages_list is not None:

0 commit comments

Comments
 (0)