Skip to content

Commit 28a1662

Browse files
committed
feat: use gpg api
1 parent ebaf4ee commit 28a1662

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

lib/debian-repository.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import { fileURLToPath } from "node:url";
77
import zlib from "node:zlib";
88
import Ajv from "#core/ajv";
99
import Git from "#core/api/git";
10+
import Gpg from "#core/api/gpg";
1011
import { readConfigSync } from "#core/config";
1112
import ejs from "#core/ejs";
1213
import env from "#core/env";
1314
import File from "#core/file";
1415
import { exists } from "#core/fs";
1516
import { glob, globSync } from "#core/glob";
16-
import Gpg from "#core/gpg";
1717
import SemanticVersion from "#core/semantic-version";
1818
import tar from "#core/tar";
1919
import * as yaml from "#core/yaml";
@@ -305,29 +305,29 @@ export default class DebianRepository {
305305
} );
306306

307307
// create "Release.gpg"
308-
res = await gpg.detachSign( new File(
309-
{
308+
res = await gpg.detachSign(
309+
new File( {
310310
"path": this.root + `/dists/${ codename }/Release`,
311-
},
311+
} ),
312312
[ this.config.gpgKeyName ],
313313
{
314314
"armor": true,
315315
"output": this.root + `/dists/${ codename }/Release.gpg`,
316316
}
317-
) );
317+
);
318318
if ( !res.ok ) return res;
319319

320320
// create "InRelease"
321-
res = await gpg.clearSign( new File(
322-
{
321+
res = await gpg.clearSign(
322+
new File( {
323323
"path": this.root + `/dists/${ codename }/Release`,
324-
},
324+
} ),
325325
[ this.config.gpgKeyName ],
326326
{
327327
"armor": true,
328328
"output": this.root + `/dists/${ codename }/InRelease`,
329329
}
330-
) );
330+
);
331331
if ( !res.ok ) return res;
332332
}
333333

0 commit comments

Comments
 (0)