canonical / craft-archives

A library for handling archives/repositories in Craft applications
https://canonical-craft-archives.readthedocs-hosted.com
GNU Lesser General Public License v3.0
0 stars 7 forks source link

keys: list fingerprints exactly as python-gnupg does it #84

Closed tigarmo closed 1 year ago

tigarmo commented 1 year ago

This commit updates the logic of get_key_fingerprints() to be the same as python-gnupg's (used before 1.0):

The commit is the first one on the road to fixing a regression in the 1.* release series, of repository keys with more than one key (primary or sub-key) not being supported.


codecov[bot] commented 1 year ago

Codecov Report

Merging #84 (ca6b641) into hotfix/1.1.1 (1c354f2) will increase coverage by 0.07%. The diff coverage is 100.00%.

@@               Coverage Diff                @@
##           hotfix/1.1.1      #84      +/-   ##
================================================
+ Coverage         90.44%   90.51%   +0.07%     
================================================
  Files                13       13              
  Lines               659      664       +5     
  Branches            131      133       +2     
================================================
+ Hits                596      601       +5     
  Misses               47       47              
  Partials             16       16              
Impacted Files Coverage Δ
craft_archives/repo/apt_key_manager.py 98.36% <100.00%> (+0.07%) :arrow_up: