api: gpg key importing

This commit is contained in:
Thomas Hobson 2021-02-21 21:37:38 +13:00
parent 1f5d4b8eb1
commit 64b2882450
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 2 deletions

View File

@ -44,9 +44,8 @@ class Repository {
async import_keys(){
await this.load();
logger.info(`Importing keys for repo ${this.slug}`);
await new Promise((resolve,reject)=>{
const gpgspawn = cp.spawn('gpg', ['--receive-keys', this.keys], {
const gpgspawn = cp.spawn('gpg', ['--receive-keys', ...this.keys], {
stdio: ['ignore', 'ignore', 'ignore']
});