From 5d03eb886332ce8cb80ff989ba9190d898e55e1d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 25 Apr 2022 14:15:07 -0400 Subject: [PATCH] Try to normalize license paths --- genesis/buildgenesis.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/genesis/buildgenesis.sh b/genesis/buildgenesis.sh index 4b1cf704..ba480ce5 100644 --- a/genesis/buildgenesis.sh +++ b/genesis/buildgenesis.sh @@ -21,9 +21,10 @@ for r in $(cat rpmlist); do #rpm -qi $r | grep ^License|sed -e 's/^.*:/${r}:/' >> licenselist for l in $(rpm -qL $r); do lo=${l#/usr/share/} + lo=${l#licenses/} mkdir -p licenses/$(dirname $lo) - cp $l $lo - echo /opt/confluent/genesis/x86_64/$lo >> confluent-genesis-out.spec + cp $l licenses/$lo + echo /opt/confluent/genesis/%{arch}/$lo >> confluent-genesis-out.spec done done cp -f /boot/vmlinuz-$(uname -r) boot/kernel