From bbcc9460b4ff27bcf40dc52b281a86c9b39b79b3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Tue, 8 Jul 2014 18:55:58 +0200 Subject: [PATCH] webbuild-cgi: need to pass binary to some SUDO_WRAPPER calls after previous change --- webbuild/webbuild-cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 4437c4b..6e6f369 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -484,7 +484,7 @@ if [ "$REQUEST" = "environmentsearch" ]; then echo -n "
Environment search results for \"$ENVSEARCHTEXT\":
" echo -n "
"
    echo -n "Installed packages providing '$ENVSEARCHTEXT':
" - WHAT_PROVIDES=`$SUDO_WRAPPER 0 $ENVIRONMENT "$USER" "" "rpm -q --what-provides \"$ENVSEARCHTEXT\"" | sort -u` + WHAT_PROVIDES=`$SUDO_WRAPPER binary $ENVIRONMENT "$USER" "" "rpm -q --what-provides \"$ENVSEARCHTEXT\"" | sort -u` echo -n "$WHAT_PROVIDES
" if [ "${WHAT_PROVIDES:0:10}" != "no package" ]; then for f in $WHAT_PROVIDES; do @@ -542,7 +542,7 @@ if [ "$REQUEST" = "rpmmanager" ]; then rpmmanagerfiles=$rpmmanagerdir/$rpmmanagermask if [ "${rpmmanagermode}" = "environment" ]; then # local files in environment - $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" "" "ls -t $rpmmanagerfiles 2>/dev/null" | \ + $SUDO_WRAPPER binary $ENVIRONMENT "$USER" "" "ls -t $rpmmanagerfiles 2>/dev/null" | \ while read f; do pkgname=`basename $f` echo -n "
" fi echo -n "Current $PACKAGE.spec in build environment:]]>" # else # echo ""