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 = ''
|
||||
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
|
||||
'';
|
||||
|
Loading…
x
Reference in New Issue
Block a user