api: lint
This commit is contained in:
parent
72f57ef1ce
commit
5ac1285534
|
@ -73,7 +73,7 @@ class Package {
|
||||||
await this.repo.import_keys();
|
await this.repo.import_keys();
|
||||||
|
|
||||||
logger.debug('Validating signatutes');
|
logger.debug('Validating signatutes');
|
||||||
if(this.signature != "")
|
if(this.signature != '')
|
||||||
await new Promise((resolve,reject)=>{
|
await new Promise((resolve,reject)=>{
|
||||||
const gpgspawn = cp.spawn('gpg', ['--verify', '-', pkgpath], {
|
const gpgspawn = cp.spawn('gpg', ['--verify', '-', pkgpath], {
|
||||||
stdio: ['pipe', 'ignore', 'ignore']
|
stdio: ['pipe', 'ignore', 'ignore']
|
||||||
|
@ -91,7 +91,7 @@ class Package {
|
||||||
|
|
||||||
});
|
});
|
||||||
else
|
else
|
||||||
logger.warn("Package does not contain a signature - allowing install, but proceed with caution")
|
logger.warn('Package does not contain a signature - allowing install, but proceed with caution');
|
||||||
|
|
||||||
logger.debug(`Extracting package files from archive ${pkgfile} in to ${this.install_path}`);
|
logger.debug(`Extracting package files from archive ${pkgfile} in to ${this.install_path}`);
|
||||||
await new Promise((resolve, reject)=>{
|
await new Promise((resolve, reject)=>{
|
||||||
|
|
Loading…
Reference in New Issue