From 9d85fd2b1d2c0d532229ff858e15d2ba3f793043 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 14 Nov 2011 12:07:04 +0100 Subject: [PATCH] pck-update: escape '<' and '>' characters when printing SPEC_OBSOLETES to infofile to fix a syntax error --- plugins/pck-update.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 9a77368..5696996 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -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=(\