Skip to content

Conversation

@lissyx
Copy link
Contributor

@lissyx lissyx commented Jan 14, 2026

No description provided.

@lissyx lissyx requested a review from a team January 14, 2026 20:05
@lissyx lissyx force-pushed the enterprise-repack_default_console branch from 0c33392 to 9fc92d0 Compare January 14, 2026 22:53
]["locales"]:
if platform_name == build_platform:
repack_final_name = f"{enterprise_name}/{repack_name}/{repack_locale}"
if repack_final_name not in repacks:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider making repacks a set so you don't need to test for existence.

if platform_name == build_platform:
repack_final_name = f"{enterprise_name}/{repack_name}/{repack_locale}"
if repack_final_name not in repacks:
repacks += [repack_final_name]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try:

from itertools import product

repacks = set()
for enterprise_name, repack_configs in this_repack.items():
    for repack_name, config in repack_configs.items():
        repacks.update([
            f"{enterprise_name}/{repack_name}/{locale}"
            for platform, locale in product(config["platforms"],  config["locales"]):
            if platform == build_platform
        ])  

Haven't tested but should be equivalent.

@lissyx lissyx force-pushed the enterprise-repack_default_console branch 3 times, most recently from 5d5535a to 3d19a20 Compare January 20, 2026 10:56
@lissyx lissyx force-pushed the enterprise-repack_default_console branch from 3d19a20 to 9b3838b Compare January 20, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants