| Summary: | createdoctemplates.sh --check claims to check existence of xml files, but it doesn't | ||
|---|---|---|---|
| Product: | [Translations] i18n | Reporter: | Alexander Potashev <aspotashev> |
| Component: | general | Assignee: | Albert Astals Cid <aacid> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | luigi.toscano |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Alexander Potashev
2021-01-10 21:37:53 UTC
This one is for Luigi Only --checks (and checkdocs.sh) doesn't work, otherwise scripty would have been totally broken. Still need to be fixed. --check is used at https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/update_translations#L422: bash $scriptydir/createdoctemplates.sh --commit --check --autosvnadd I can't explain why scripty is not broken. Unless I read it incorrectly (and it may), test -z only checks that the string is not empty - and indeed it is not - and not for the file existence (that would be `if ! test -f ${FILE_FOO} || ! test -f ${FILE_BAR}; then`). So while the condition should be fixed, the code still works as it is.
Ah, right. Sorry for confusion. |