Skip to content
Snippets Groups Projects
  1. Feb 07, 2023
  2. Feb 06, 2023
  3. Jan 24, 2023
  4. Jan 16, 2023
    • Guillem Jover's avatar
      Dpkg::OpenPGP::Backend::GnuPG: Fallback to use «gpg dearmor» if present · b698489d
      Guillem Jover authored
      When verifying a signature, we were using the internal dearmor() method,
      as that makes it possible to not have gpg around when we are using gpgv.
      
      The problem is that the internal dearmor() method does not handle
      concatenated ASCII Armor blocks, and might then fail to find the
      certificates. When using gpgv this is only a partial regression as
      we were previously not verifying at all on minimal systems where gpg
      was not available. But when it is available, now that has regressed.
      
      In the future we might require no concatenated ASCII Armor blocks,
      but for now let's mitigate this regression.
      
      Fixes: commit a11d7340
      Reported-by: Sven Joachim <svenjoac@gmx.de> (on IRC)
      b698489d
    • Guillem Jover's avatar
      Dpkg::OpenPGP::Backend::GnuPG: Touch trustedkeys.gpg on temporary gpg home · 9cca3e8f
      Guillem Jover authored
      The gpgv command expects a trustedkeys.gpg keyring, and if there is none
      it will try the trustedkeys.kbx one, but then will emit an error such as:
      
        gpgv: unknown type of key resource 'trustedkeys.kbx'
        gpgv: keyblock resource '<GPGHOME>/trustedkeys.kbx': General error
      
      This error will only show if the gpgv invocation failed for other
      reasons, but it is still an unnecessary distraction. Avoid that error,
      by touching the trustedkeys.gpg keyring.
      9cca3e8f
  5. Jan 15, 2023
    • Guillem Jover's avatar
      Dpkg::OpenPGP::Backend::GnuPG: Set secure signing preferred algorithms · 3c42b0ed
      Guillem Jover authored
      The current GnuPG defaults with --openpgp cater for heavy backwards
      compatibility at the cost of being insecure but potentially being
      compatible with very old programs.
      
      We care more about secure defaults than backwards compatibility with
      ancient programs, so we pass our preferences to gpg when signing. This
      should also cover the case for users that have created old keys with
      insecure key preferences which might end up producing insecure
      signatures.
      
      Fixes: commit b83114da
      Closes: #1028961
      3c42b0ed
    • Guillem Jover's avatar
      po: Update Catalan translation · 0f877f11
      Guillem Jover authored
      0f877f11
  6. Jan 10, 2023
  7. Jan 07, 2023
    • Guillem Jover's avatar
      Dpkg::BuildFlags: Fix strip method to always work with duplicates · 5f6e45fb
      Guillem Jover authored
      The regex was not correctly matching at the beginning of the line with
      leading spaces, which could be left by a previous replacement from
      the same s/// operator. Instead switch to split the flag value and
      filter based on a hash, which means we do not need to care about such
      space issues anymore.
      
      This change should not change the semantics for space separated options
      in the flags, as the code was already splitting the passed values on
      spaces, and then remapping on the entire flag value.
      
      Improve strip unit tests to cover all these cases.
      
      Closes: #1028044
      5f6e45fb
  8. Jan 05, 2023
  9. Jan 04, 2023
  10. Jan 03, 2023
  11. Jan 02, 2023
  12. Jan 01, 2023
Loading