pck-update: escape '<' and '>' characters when printing SPEC_OBSOLETES to infofile to fix a syntax error
This commit is contained in:
parent
ea971add94
commit
9d85fd2b1d
@ -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_BUILDREQUIRES" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDREQUIRES
|
||||||
[ "$SPEC_BUILDROOT" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDROOT
|
[ "$SPEC_BUILDROOT" ] || specfile.getvars -s $SPECFILE_PREPROCESSED SPEC_BUILDROOT
|
||||||
|
|
||||||
|
SPEC_OBSOLETES_ESCAPED = `echo "(${SPEC_OBSOLETES[*]})" | sed "s|<|\<|;s|>|\>|"`
|
||||||
|
|
||||||
echo "\
|
echo "\
|
||||||
SPEC_NAME=\"$SPEC_NAME\"
|
SPEC_NAME=\"$SPEC_NAME\"
|
||||||
SPEC_VERSION=\"$SPEC_VERSION\"
|
SPEC_VERSION=\"$SPEC_VERSION\"
|
||||||
@ -495,7 +497,7 @@ $(for i in `seq 1 1 ${#SPEC_LICENSE[*]}`; do
|
|||||||
echo -n "\"${SPEC_LICENSE[i-1]}\" "
|
echo -n "\"${SPEC_LICENSE[i-1]}\" "
|
||||||
done))
|
done))
|
||||||
SPEC_TARGET=(${SPEC_TARGET[*]})
|
SPEC_TARGET=(${SPEC_TARGET[*]})
|
||||||
SPEC_OBSOLETES=(${SPEC_OBSOLETES[*]})
|
SPEC_OBSOLETES=(${SPEC_OBSOLETES_ESCAPED[*]})
|
||||||
SPEC_BUILDARCH=\"$SPEC_BUILDARCH\"
|
SPEC_BUILDARCH=\"$SPEC_BUILDARCH\"
|
||||||
SPEC_BUILDROOT=\"$SPEC_BUILDROOT\"
|
SPEC_BUILDROOT=\"$SPEC_BUILDROOT\"
|
||||||
SPEC_BUILDREQUIRES=(\
|
SPEC_BUILDREQUIRES=(\
|
||||||
|
Loading…
Reference in New Issue
Block a user