Skip to content

Commit 759831c

Browse files
Log used versions on verbose mode
Fixes #59
1 parent 843522c commit 759831c

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

flat-manager/dist/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4104,7 +4104,13 @@ class Configuration {
41044104
}
41054105
}
41064106

4107-
const run = (config) => {
4107+
const run = async (config) => {
4108+
if (config.verbose) {
4109+
await exec.exec('flatpak --version')
4110+
await exec.exec('flatpak-builder --version')
4111+
await exec.exec('ostree --version')
4112+
}
4113+
41084114
const args = [
41094115
'build-update-repo',
41104116
'--generate-static-deltas',

flat-manager/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ class Configuration {
1515
}
1616
}
1717

18-
const run = (config) => {
18+
const run = async (config) => {
19+
if (config.verbose) {
20+
await exec.exec('flatpak --version')
21+
await exec.exec('flatpak-builder --version')
22+
await exec.exec('ostree --version')
23+
}
24+
1925
const args = [
2026
'build-update-repo',
2127
'--generate-static-deltas',

flatpak-builder/dist/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,12 @@ const prepareBuild = async (config) => {
328328
* @param {Configuration} config The build configuration
329329
*/
330330
const run = async (config) => {
331+
if (config.verbose) {
332+
await exec.exec('flatpak --version')
333+
await exec.exec('flatpak-builder --version')
334+
await exec.exec('ostree --version')
335+
}
336+
331337
let cacheHitKey
332338
try {
333339
cacheHitKey = await prepareBuild(config)

flatpak-builder/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@ const prepareBuild = async (config) => {
322322
* @param {Configuration} config The build configuration
323323
*/
324324
const run = async (config) => {
325+
if (config.verbose) {
326+
await exec.exec('flatpak --version')
327+
await exec.exec('flatpak-builder --version')
328+
await exec.exec('ostree --version')
329+
}
330+
325331
let cacheHitKey
326332
try {
327333
cacheHitKey = await prepareBuild(config)

0 commit comments

Comments
 (0)