Skip to content

Commit 1430db4

Browse files
committed
make local_install doesn't regenerate template/po files.
In CI, xpot is missing. So make local_install fails to rebuild and install roundup.pot and .po. Have make local_install or pytest just use the existing .po files like it used to before make dist rebuilt everything.
1 parent b58ac2f commit 1430db4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

locale/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ dist: $(MO_FILES)
4141

4242
template: roundup.pot
4343

44-
pytest local_install: dist
44+
pytest local_install:
45+
for file in $(PO_FILES); do \
46+
${MSGFMT} -o `basename $$file .po`.mo $$file; \
47+
done
4548
for file in $(MO_FILES); do \
4649
lang=`basename $$file .mo`; \
4750
mkdir -p locale/$$lang/LC_MESSAGES; \

0 commit comments

Comments
 (0)