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 8 forks source link

repo: set home dir when importing keys to show #51

Closed tigarmo closed 1 year ago

tigarmo commented 1 year ago

Unlike --show-keys, --import with --import-options show-only needs a directory to place the temporarily imported key; If not provided, gpg will default to ~/.gnupg, creating it if necessary. This creation can be a race when running tests in parallel, as multiple gpg processes try to create ~/.gnupg simultaneously.


codecov[bot] commented 1 year ago

Codecov Report

Merging #51 (f21ecba) into main (d453e83) will increase coverage by 0.15%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
+ Coverage   82.32%   82.48%   +0.15%     
==========================================
  Files          12       12              
  Lines         679      685       +6     
  Branches      154      157       +3     
==========================================
+ Hits          559      565       +6     
  Misses         88       88              
  Partials       32       32              
Impacted Files Coverage Δ
craft_archives/repo/apt_key_manager.py 98.11% <100.00%> (+0.11%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.