Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --srcdir handling #237

Merged
merged 4 commits into from
May 20, 2020
Merged

Fix --srcdir handling #237

merged 4 commits into from
May 20, 2020

Conversation

guillemj
Copy link
Contributor

This fixes several issues with the --srcdir handling so that it does the right thing. These were causing build failures in at least dpkg and aptitude. I've also checked all other instances of find_output_file and they look ok, but a second look would make sense anyway. :)

Fixes Debian bug #960892.

guillemj added 4 commits May 20, 2020 05:55
The order of the directory contents is not predictable, and that was
causing the test suite to fail depending on the layout and creation order
of the entries. We now sort the return list to guarantee a stable order.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
This is an output file, and if its directory is missing we need to
create it, otherwise msgmerge will fail.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
When destdir has not been specified, srcdir is different to calldir,
and we write new output files, we do so in calldir. So when we look
for the same files as input, we need to look for them in calldir too,
otherwise we will look for possibly outdated ones.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
The .pot file was being looked only in the destdir locations, but in
this particular call this is in fact an input file.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
@mquinson mquinson merged commit c973894 into mquinson:master May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants