On 17 Sep 2026, at 22:24, Jaipaul Cheernam via lists.openembedded.org <[email protected]> wrote: > def gnome_verdir(v): > - return ".".join(v.split(".")[:-1]) or v > + # GNOME dirs use the first two version components, e.g. 0.21.8.2 -> 0.21 > + parts = v.split(".") > + return ".".join(parts[:2] if len(parts) >= 3 else parts[:-1]) or v
The original logic was slightly overcomplicated, and this seems even more so. Why isn’t this sufficient? def gnome_verdir(v): return “.”.join(v.split(“.”)[:2])
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246520): https://lists.openembedded.org/g/openembedded-core/message/246520 Mute This Topic: https://lists.openembedded.org/mt/121304875/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
