RTEMS Deployment | fix: validate packager and fall back to `platform.machine()` for unknown arch (!34)
Ayush Yadav (@acidicneko)
gitlab at rtems.org
Thu Jun 25 01:54:47 UTC 2026
Ayush Yadav commented on a discussion on pkg/linux.py: https://gitlab.rtems.org/rtems/tools/rtems-deployment/-/merge_requests/34#note_153228
> }
>
>
> +def get_pkg_arch(packager: str) -> str:
> + if packager not in arch_map:
> + raise ValueError(f'unsupported packager: {packager}')
> + machine = platform.machine()
> + if machine not in arch_map[packager]:
> + print(
> + f'warning: unsupported architecture {machine} for packager {packager}, using {machine} as-is'
I have ran it through \`yapf\` and it is what it gives.
I can either make the message short or split it into two lines, whichever suits the best.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-deployment/-/merge_requests/34#note_153228
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-05wet7mv2nhtf6jbz39hpec52-3n/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260625/64f9e719/attachment-0001.htm>
More information about the bugs
mailing list