api: gpg key importing
This commit is contained in:
parent
1f5d4b8eb1
commit
64b2882450
|
@ -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']
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue