pck-update: escape '<' and '>' characters when printing SPEC_OBSOLETES to infofile to fix a syntax error

This commit is contained in:
Silvan Calarco 2011-11-14 12:07:04 +01:00
parent ea971add94
commit 9d85fd2b1d

View File

@ -478,6 +478,8 @@ rpm -q $USER_RPMDEFINE_OPTS --specfile --specedit $SRPM_SPECFILE_WITH_PATH \
[ "$SPEC_BUILDREQUIRES" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDREQUIRES
[ "$SPEC_BUILDROOT" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDROOT
SPEC_OBSOLETES_ESCAPED = `echo "(${SPEC_OBSOLETES[*]})" | sed "s|<|\<|;s|>|\>|"`
echo "\
SPEC_NAME=\"$SPEC_NAME\"
SPEC_VERSION=\"$SPEC_VERSION\"
@ -495,7 +497,7 @@ $(for i in `seq 1 1 ${#SPEC_LICENSE[*]}`; do
echo -n "\"${SPEC_LICENSE[i-1]}\" "
done))
SPEC_TARGET=(${SPEC_TARGET[*]})
SPEC_OBSOLETES=(${SPEC_OBSOLETES[*]})
SPEC_OBSOLETES=(${SPEC_OBSOLETES_ESCAPED[*]})
SPEC_BUILDARCH=\"$SPEC_BUILDARCH\"
SPEC_BUILDROOT=\"$SPEC_BUILDROOT\"
SPEC_BUILDREQUIRES=(\