I like the idea of this patch (hardcoding behaviour is bad), but I think it could be generalised some more.
> On 6 Dec 2023, at 16:03, Jonathan GUILLOT via lists.openembedded.org > <[email protected]> wrote: > - localedir = os.path.join(dvar + datadir, 'locale') > + localedirs = [os.path.join(dvar + datadir, 'locale')] > > - if not cpath.isdir(localedir): > + for localedir in (d.getVar('LOCALE_EXTRA_PATHS') or "").split(): > + localedirs.append(dvar + localedir) Instead of hardcoding ${datadir}/locale and then working on LOCALE_EXTRA_PATHS, how about adding a new variable (LOCALE_PATHS?) which is set to ${datadir}/locale by default, and the population code just works on that. The cups recipe can then LOCALE_PATHS += "${datadir}/cups/templates/“ to add in its own files. Cheers Ross
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#194398): https://lists.openembedded.org/g/openembedded-core/message/194398 Mute This Topic: https://lists.openembedded.org/mt/103522631/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
