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'] });