webbuild-cgi: fix support for multiple words queries
This commit is contained in:
parent
144f1b0eb6
commit
367e2f7dee
@ -466,7 +466,8 @@ if [ "$REQUEST" = "repsearch" ]; then
|
|||||||
echo -n "<output><![CDATA["
|
echo -n "<output><![CDATA["
|
||||||
echo -n "<hr><b>Search results for \"$REPSEARCHTEXT\":</b><div align=left class=output id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
|
echo -n "<hr><b>Search results for \"$REPSEARCHTEXT\":</b><div align=left class=output id=outputtop style=\"font-family:serif;color:black;background-color:#E0F2D0;\">"
|
||||||
# echo -n "<pre><!-- SCROLL -->"
|
# echo -n "<pre><!-- SCROLL -->"
|
||||||
curl -s "${WEBBUILD_DISTROQUERY_URL}?query=$REPSEARCHTEXT&search_milestone2=true&search_devel=true\
|
REPSEARCHTEXT_FMT=`echo "${REPSEARCHTEXT}" | sed "s|[[:space:]]|+|g"`
|
||||||
|
curl -s "${WEBBUILD_DISTROQUERY_URL}?query=${REPSEARCHTEXT_FMT}&search_milestone2=true&search_devel=true\
|
||||||
&search_i586=true&search_x86_64=true&search_arm=true&search_sources=true&query_compact=true&replyplain=true" | \
|
&search_i586=true&search_x86_64=true&search_arm=true&search_sources=true&query_compact=true&replyplain=true" | \
|
||||||
sed "s| \(href=.\)/| \1${SITE_BASE_URL}/|g"
|
sed "s| \(href=.\)/| \1${SITE_BASE_URL}/|g"
|
||||||
# $SUDO_WRAPPER 0 local "$USER" "" "autodist-repository search -i ${REPSEARCHTEXT/-/\-}" | \
|
# $SUDO_WRAPPER 0 local "$USER" "" "autodist-repository search -i ${REPSEARCHTEXT/-/\-}" | \
|
||||||
|
Loading…
Reference in New Issue
Block a user