From 64b28824500692659f58f110231032cfb05f47af Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 21 Feb 2021 21:37:38 +1300 Subject: [PATCH] api: gpg key importing --- api/src/ppman/repo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/ppman/repo.js b/api/src/ppman/repo.js index 4c6deab..d05c1a9 100644 --- a/api/src/ppman/repo.js +++ b/api/src/ppman/repo.js @@ -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'] });