Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 25, 2024
1 parent e78f618 commit 4ed9d0c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions images/virt-launcher/werf.inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,18 +299,12 @@ shell:
rpm2cpio edk2-20241117-1.el9.src.rpm > edk2.cpio
cpio -id < edk2.cpio
PATCH_COUNTER=1
find ./ -iname "*.patch" | while read p ; do
cp $p /home/builder/RPM/SOURCES/
PATCH_NAME=$(basename $p)
PATCH_NUM=$((PATCH_COUNTER + 1))
sed -i "/^Patch${PATCH_COUNTER}:/a Patch${PATCH_NUM}: ${PATCH_NAME}" /home/builder/RPM/SPECS/edk2.spec
sed -i "/^%patch${PATCH_COUNTER} -p1/a %patch${PATCH_NUM} -p1 || true" /home/builder/RPM/SPECS/edk2.spec
PATCH_COUNTER=$((PATCH_COUNTER + 1))
NAME=$(echo $p | sed 's!.patch!-rhel.patch)
cp $p /home/builder/RPM/SOURCES/$NAME
done
sed -i "/^%patch1 -p1/a for p in %{_sourcedir}/*-rhel.patch; do patch -p1 --force --verbose < \$p ; done" /home/builder/RPM/SPECS/edk2.spec
# Build RPMs. edk2 package prints a huge log with about 770k lines,
# we can keep only last 1k lines, it should be enough to get error
Expand Down

0 comments on commit 4ed9d0c

Please sign in to comment.