Skip to content

Commit 98d8579

Browse files
committed
Fixes
1 parent b595e02 commit 98d8579

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

invfile.lua.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ otherwise a new array is used.
534534
.run('/bin/sh', '-c',
535535
'cp /data/api/_images/' .. package .. '.json'
536536
.. ' /pkg/info/github.json '
537-
.. '|| echo "{\"versions\":[]}" > /pkg/info/github.json')
537+
.. '|| echo "{}" > /pkg/info/github.json')
538538

539539
.using(jq)
540540
.withHostConfig({binds = {
@@ -546,7 +546,7 @@ otherwise a new array is used.
546546
.. 'image: "' .. package .. '",'
547547
.. 'packager: "' .. packager .. '", '
548548
.. 'homepage: $i[0], description: $i[1], '
549-
.. 'versions: ($i[3] | fromjson |.versions | '
549+
.. 'versions: ($i[3] | fromjson | (.versions // []) | '
550550
.. ' map(select(.revision != "' .. new_revision
551551
.. '" )) + [{version: $i[2], revision: "' .. new_revision
552552
.. '", size: $i[4], date: (now | todate)}]),'
@@ -730,6 +730,9 @@ duplicates and tells the user.
730730
.runTask('main:versions:load_from_packages.tsv')
731731

732732
.runTask('main:generate_list:builds')
733+
.runTask('main:after_prepare')
734+
735+
inv.task('main:after_prepare')
733736
.hook(afterPrepare)
734737

735738
# Final Steps

0 commit comments

Comments
 (0)