Skip to content

Commit

Permalink
Merge pull request #34 from r-devel/keep-sq
Browse files Browse the repository at this point in the history
Don't delete empty files if they're already in SVN
  • Loading branch information
MichaelChirico authored Mar 26, 2024
2 parents 7ef30b9 + e21be34 commit 31961b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/Weblate-server.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ The basic idea is to compare the Weblate repo (which copies the R subversion rep
po_summary <- merge(weblate_summary, svn_summary, by = "filename", all = TRUE, suffixes = c("_weblate", "_svn"))
po_summary[, package := basename(dirname(dirname(filename)))]
# Drop empty & record files
po_summary[n_translated_weblate == 0, {
po_summary[n_translated_weblate == 0 & is.na(n_translated_svn), { # NB: keep empty files if they're already in SVN, hence is.na() check
log_info('Dropping {.N} empty files:')
.SD[, by = package, {
log_level(INFO, 'From package {blue(.BY$package)}:')
Expand Down

0 comments on commit 31961b2

Please sign in to comment.