mirror of
https://github.com/rocky-linux/sig-cloud-instance-images.git
synced 2024-06-13 03:00:16 +00:00
Fix xmllint command
This commit is contained in:
parent
fb61cd5579
commit
a050fbcf32
5
Makefile
5
Makefile
|
@ -56,10 +56,9 @@ $(OUTNAME).tar.xz: $(TARGETIMAGE_META) $(OUT)/packages.txt
|
|||
mkdir out
|
||||
tar -Oxf $(STORAGEDIR)/$(TARGETIMAGEUUID).body */layer.tar | xz > out/$(OUTNAME).tar.xz
|
||||
tar -tf out/$(OUTNAME).tar.xz > out/filelist.txt
|
||||
cp $(STORAGEDIR)/$(TARGETIMAGEUUID).meta out/
|
||||
cp $(STORAGEDIR)/$(TARGETIMAGEUUID).meta out/build.meta
|
||||
|
||||
$(OUT)/packages.txt:
|
||||
xmllint --xpath "//packages/*/@name" <(printf "$(jq '.icicle' < $(STORAGEDIR)/$(TARGETIMAGEUUID).meta)\n" | tail -c +2 | head -c -2) | \
|
||||
tr ' ' '\n' | \
|
||||
xmllint --xpath "//packages/*/@name" <(printf "$(jq '.icicle' < $(STORAGEDIR)/$(TARGETIMAGEUUID).meta)\n" | tr -d '\\' | tail -c +2 | head -c -2) | \
|
||||
awk -F\= '{print substr($2,2,length($2)-2)}' | \
|
||||
sort > $(OUT)/packages.txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user