forked from rarias/bscpkgs
Fix parsing of new apt package list for oneapi 2023
New apt list does not have Package: as the first entry for all packages
This commit is contained in:
parent
39157ea318
commit
83ae2f489d
@ -47,7 +47,8 @@ let
|
|||||||
installPhase = ''
|
installPhase = ''
|
||||||
awk -F': ' '\
|
awk -F': ' '\
|
||||||
BEGIN { print "[ {" } \
|
BEGIN { print "[ {" } \
|
||||||
NR>1 && /^Package: / { print "} {"; } \
|
NF==0 { empty=1; } \
|
||||||
|
NF && empty { print "} {"; empty=0; } \
|
||||||
/: / { printf "%s = \"%s\";\n", $1, $2 } \
|
/: / { printf "%s = \"%s\";\n", $1, $2 } \
|
||||||
END { print "} ]" }' $srcs > $out
|
END { print "} ]" }' $srcs > $out
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user