Commit 55224a3ecba6298789438d443ac7c5f9a8a4c451

Authored by Silvan Calarco
1 parent bbcc9460b4
Exists in master

webbuild-cgi: other adjustements using binary calls to webbuild-sudo

Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff

webbuild/webbuild-cgi
... ... @@ -1638,18 +1638,18 @@
1638 1638 "runldconfig") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" "" "/sbin/ldconfig"
1639 1639 RET=$?
1640 1640 ;;
1641   - "showpatch") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE"; RET=$? ;;
  1641 + "showpatch") $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE"; RET=$? ;;
1642 1642 "removepatch") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE remove"
1643 1643 RET=$?
1644 1644 if [ $RET -eq 0 ]; then
1645 1645 social_log "SUSER=$USER SEMAIL=$USER_EMAIL STEXT=\"removed the autodist patch for <b>$PACKAGE</b>\" STIME=`date +%s`"
1646 1646 fi ;;
1647   - "autopatch") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE auto"
  1647 + "autopatch") $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE auto"
1648 1648 RET=$?
1649 1649 if [ $RET -eq 0 ]; then
1650 1650 social_log "SUSER=$USER SEMAIL=$USER_EMAIL STEXT=\"made an autodist patch for <b>$PACKAGE</b>\" STIME=`date +%s`"
1651 1651 fi ;;
1652   - "updatepatch") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE update"
  1652 + "updatepatch") $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "autodist-tool makepatch $PACKAGE update"
1653 1653 RET=$?
1654 1654 if [ $RET -eq 0 ]; then
1655 1655 social_log "SUSER=$USER SEMAIL=$USER_EMAIL STEXT=\"made an autodist <b>update</b> patch for <b>$PACKAGE</b>\" STIME=`date +%s`"
... ... @@ -2041,9 +2041,9 @@
2041 2041 [ $RET -eq 0 ] && RET=-1 ;;
2042 2042 "showpatchfile") OUTPATCHFILE=${PATCHFILE/*\/}
2043 2043 case ${OUTPATCHFILE/*.} in
2044   - gz|gzip) $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "gunzip -c $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
2045   - bz2) $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "bzcat $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
2046   - *) $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "cat $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
  2044 + gz|gzip) $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "gunzip -c $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
  2045 + bz2) $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "bzcat $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
  2046 + *) $SUDO_WRAPPER binary $ENVIRONMENT "$USER" $PACKAGE "cat $SPECVAR_RPMSOURCESDIR/$OUTPATCHFILE" | parse_patch_output ;;
2047 2047 esac
2048 2048 RET=$?
2049 2049 [ $RET -eq 0 ] && RET=-1