1. 26 May, 2022 1 commit
  2. 25 May, 2022 1 commit
  3. 06 Jun, 2021 1 commit
  4. 12 Apr, 2020 1 commit
  5. 19 Mar, 2020 4 commits
    • Cyril Brulebois's avatar
      lint_po: get rid of an obsolete temporary directory (refs: #17359). · 9e4b84cb
      Cyril Brulebois authored
      This wasn't tidied up in earlier commits to make sure the revert (in the
      previous commit) would apply cleanly, but there's of course no need to
      keep creating this temporary directory.
      
      [ Due to indentation changes, use -b/-w to double check this commit. ]
      9e4b84cb
    • Cyril Brulebois's avatar
      Revert "Fix race condition of $XDG_CACHE_HOME/rply creation." (refs: #17359). · 34bb0b27
      Cyril Brulebois authored
      This reverts commit c957b5b8.
      
      With the new approach (implemented two commits ago), a cache directory
      is created for each i18nspector call. This means that we don't need to
      treat the first file specifically (which wasn't working, depending on
      which file that was).
      
      As a result, the code can be simplified, getting back to the previous
      “treat all files the same way” implementation.
      34bb0b27
    • Cyril Brulebois's avatar
      lint_po: set XDG_CACHE_HOME independently (refs: #17359). · 542bdf10
      Cyril Brulebois authored
      Let's clean things up a little: The previous commit was an incremental
      evolution, creating individual cache directories below the previously
      global temporary directory. Even if that works fine, that's a little
      convoluted, and there's no reason for this indirection: each i18nspector
      call can get its own temporary directory anywhere, so simplify how the
      temporary directories are created.
      542bdf10
    • Cyril Brulebois's avatar
      lint_po: make each i18nspector work with a specific rply cache dir (Closes: #17359). · d7ca5acd
      Cyril Brulebois authored
      Treating the first PO file as special was a nice try but some files
      don't trigger the creation of a parser, i.e. don't result in the
      creation of a rply cache directory and/or cache file.
      
      That's the case if the first file is wiki/src/getting_started.fr.po for
      example, which results in various failure modes, depending on who wins
      the race:
       - mkdir on the just-created rply directory;
       - trying to read from the just-created and still-empty cache file,
         which is not valid JSON-wise;
       - trying to read from a being-written cache file, leading to
         inconsistent data, meaning another JSON validity problem.
      
      Therefore, consider the XDG_CACHE_HOME environment variable set at the
      top-level to be the top-level directory, below which a specific
      subdirectory will be created for each i18nspector call. This should
      ensure nobody steps on someone else's toes.
      
      This is just an attempt at a minimal bug fix, follow-up commits will
      simplify that code drastically.
      d7ca5acd
  6. 02 Jan, 2020 1 commit
    • intrigeri's avatar
      lint_po: succeed if --cached was passed but no PO files were staged · af71169b
      intrigeri authored
      When having "lint_po --cached" in one's pre-commit hook, any attempt
      to create a commit that does not modify any PO file fails with:
      
        Traceback (most recent call last):
          File "/home/intrigeri/.home/prv-user/.combined/cyber/amnesia/live/git/submodules/jenkins-tools/slaves/lint_po", line 347, in <module>
            main(logging.getLogger())
          File "/home/intrigeri/.home/prv-user/.combined/cyber/amnesia/live/git/submodules/jenkins-tools/slaves/lint_po", line 327, in main
            chain = [(_check_po_file(next(iterator)),),
        StopIteration
      
        The po files you're trying to commit contain errors. Please fix them and try again.
      
      This is a regression introduced by c957b5b8,
      which b37a38ce fixed already, but only for the
      case when --cached is *not* passed.
      
      Note that in --cached mode, we don't display a warning: for details,
      see 0da94c64.
      af71169b
  7. 20 Dec, 2019 5 commits
  8. 18 Dec, 2019 1 commit
  9. 18 Sep, 2019 1 commit
  10. 12 Sep, 2019 5 commits
  11. 26 Jun, 2019 5 commits
  12. 25 Jun, 2019 3 commits
  13. 29 Feb, 2016 3 commits
  14. 13 Feb, 2016 1 commit
  15. 19 Dec, 2015 1 commit
  16. 30 Nov, 2015 1 commit
  17. 12 Jun, 2015 1 commit
    • intrigeri's avatar
      Import check_po. · fa46523f
      intrigeri authored
      It comes from the main Tails Git repository at
      commit 3d216e76e61514e25e01791ec88e7750c86a90b3.
      fa46523f