Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3fc81dd

Browse files
jeanasJulienPalard
authored andcommitted
merge.py: Use git ls-files to get list of downstream PO files
The previous method could lead to problems if a dependency installedwithin venv/ shipped with its own PO files.
1 parent7b54943 commit3fc81dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎merge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,8 @@ def main():
123123
forfileinpot_path.glob("**/*.pot")
124124
}
125125
downstream= {
126-
po
127-
forpoinPath(".").glob("**/*.po")
128-
ifnot (po.is_relative_to(Path("locales"))orpo.is_relative_to(Path(".git")))
126+
Path(po)
127+
forpoinrun("git","ls-files","*.po",stdout=PIPE).stdout.splitlines()
129128
}
130129
copy_new_files(upstream-downstream,pot_path=pot_path)
131130
update_known_files(upstream&downstream,pot_path=pot_path)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp