Skip to content

Commit 2fceb33

Browse files
Merge pull request #31 from r-devel/fix
Be sure to exclude deleted files when running sed
2 parents 782c0a5 + 4898c41 commit 2fceb33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/Weblate-server.qmd

+2-3
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
168168
169169
# SUMMARIZE the changed translations, and delete empty .po files
170170
set_branch('weblate/master')
171-
weblate_po_files <- po_files()
172-
weblate_summary <- po_counts(weblate_po_files)
171+
weblate_summary <- po_counts(po_files())
173172
set_branch('svn/master')
174173
svn_summary <- po_counts(po_files())
175174
set_branch('master')
@@ -201,7 +200,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
201200
}]
202201
203202
# REPLACE 'Report-Msgid-Bugs-To' metadata field pointing to #core-translation-po-bugs
204-
system2("sed", c("-i", "'s/[email protected]/bugs.r-project.org/'", weblate_po_files))
203+
system2("sed", c("-i", "'s/[email protected]/bugs.r-project.org/'", po_summary$filename))
205204
```
206205

207206
4. Generate a patch file from the diff, going back to the most recent commit with translations merged, e.g.

0 commit comments

Comments
 (0)