Archived
1
0
forked from rarias/bscpkgs

oneapi_2023: fix parsing of new apt package list

This commit is contained in:
2025-05-15 15:48:37 +02:00
parent 68ac18673e
commit 000271b03d

View File

@@ -47,7 +47,8 @@ let
installPhase = ''
awk -F': ' '\
BEGIN { print "[ {" } \
NR>1 && /^Package: / { print "} {"; } \
NF==0 { empty=1; } \
NF && empty { print "} {"; empty=0; } \
/: / { printf "%s = \"%s\";\n", $1, $2 } \
END { print "} ]" }' $srcs > $out
'';