builder-utils: Rewrite locale migration to use fd-based traversal#733
builder-utils: Rewrite locale migration to use fd-based traversal#733bbhtt wants to merge 3 commits into
Conversation
aec8533 to
ab2b90c
Compare
dd96137 to
5dffdab
Compare
|
I still need to test this and find more examples of how locale directories are structured by apps. The previous code was recursively copying everything inside the localedir which isn't possible to do when this is fd based. I don't think we can support the exact same behaviour. I managed to support the gettext localedir structure and the when locale files are inside the immediate locale directory. AppStream also mainly handles these two structures too. I don't think other structures exists but who knows what some random software buildsystem is doing. If it can't be fully emptied, it cannot be removed or symlinked, then it gets left in a weird state and errors from unlinkat or symlinkat cannot sanely be ignored too. |
|
Ok maybe this is closer to the previous behaviour, did something to recursively migrate things. |
|
Needs a rebase over other PRs, but I think it's ok now, minus me testing it some more. |
No description provided.