On 23 Sep 2026, at 15:05, Ross Burton via lists.openembedded.org <[email protected]> wrote: > > 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])
Hm because the required logic _is_ overcomplicated. epiphany 50.6 is in the 50/ directory, libsecret 0.21.8 is in the 0.21 directory, and libsecret 0.21.8.1 is also in the 0.21 directory. My proposal doesn’t work for the 50.6 case. I’m checking with GNOME to see if they’ve actually documented the algorithm used so we can be sure to match it. Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#246523): https://lists.openembedded.org/g/openembedded-core/message/246523 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]] -=-=-=-=-=-=-=-=-=-=-=-
