add after not before

This commit is contained in:
Trevor Batley 2023-06-15 14:45:23 +10:00
parent 3094498fc6
commit f50cfc1ca7

View File

@ -279,13 +279,13 @@ sed -i "/%description/i Provides: $SOURCEPKG" "$TARGETPKG.spec"
# package specific changes # package specific changes
if [[ $TARGETPKG == "smeserver-grub" ]] ; then if [[ $TARGETPKG == "smeserver-grub" ]] ; then
sed -i '/Source1:/d' "$TARGETPKG.spec" sed -i '/^Source1:/d' "$TARGETPKG.spec"
sed -i '/Source2:/d' "$TARGETPKG.spec" sed -i '/^Source2:/d' "$TARGETPKG.spec"
sed -i '/SME: 12359/i - Remove Source1 & Source2' "$TARGETPKG.spec" sed -i '/\[SME: 12359\]/a - Remove Source1 & Source2' "$TARGETPKG.spec"
fi fi
if [[ $TARGETPKG == "smeserver-lib" ]] ; then if [[ $TARGETPKG == "smeserver-lib" ]] ; then
sed -i '/mkdir *e-smith-lib-update/d' "$TARGETPKG.spec" sed -i '/mkdir *e-smith-lib-update/d' "$TARGETPKG.spec"
sed -i '/SME: 12359/i - Remove create e-smith-lib-update event' "$TARGETPKG.spec" sed -i '/\[SME: 12359\]/a - Remove create e-smith-lib-update event' "$TARGETPKG.spec"
fi fi
# tell git about the changes # tell git about the changes