Open a-andre opened 6 years ago
With separate-locales
enabled, /app/share/locale/*/
are moved and replaced with symlinks during the build phase. If I'm reading the code correctly, the first module to create a locale dir ends up 'owning' that symlink.
When cleanup runs, it will naively remove the symlinks owned by the module if they match the pattern, even if their targets contain message catalogs from other modules.
I wonder if it would be feasible to delay locale migration until after cleanup.
I think this is causing skrooge bug 476591, wherein the symlinks in /app/share/locale/
are missing for several locales that have translations. I added cleanup
properties to several of its library modules because otherwise they put a lot of irrelevant binaries and docs in the flatpak.
Take the following example org.test.test.json file
Running
$ flatpak-builder dir --repo=repo org.test.test.json
creates the directoriesdir/files/share/runtime
. But there is nodir/files/share/locale/es/testB.mo
.After removing the cleanup part
flatpak-builder
createsdir/files/share/locale/es/test{A|B}.mo
as expected.It only happens for
/share/locale
, maybe because it is treated special.