RTEMS Deployment | fix: validate packager and fall back to `platform.machine()` for unknown arch (!34)

Chris Johns (@chris) gitlab at rtems.org
Wed Jun 24 23:06:14 UTC 2026




Chris Johns commented on a discussion on pkg/linux.py: https://gitlab.rtems.org/rtems/tools/rtems-deployment/-/merge_requests/34#note_153217

 >  }
 >  
 >  
 > +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'

This line is too long and outside the PEP format we use:

```
echo "            f'warning: unsupported architecture {machine} for packager {packager}, using {machine} as-is'" | wc -c
     106
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-deployment/-/merge_requests/34#note_153217
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-8o4g7x3313eahiln87pufayws-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/20260624/c6e096bc/attachment-0001.htm>


More information about the bugs mailing list