diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index a90cbd1..9b6e777 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -2057,6 +2057,15 @@ $PACKAGE.spec $RPMFORCEADD && $AUTOSPEC_CMD -u $PACKAGE -a10 --server $SENDREPOS show_docs `$SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "cd $SPECVAR_RPMBUILDDIR/$SPECVAR_BUILDDIR && find . $PATTERN -maxdepth 2"` RET=-1 ;; + "consolecmd") if [ ! "$SPECVAR_BUILDDIR" ]; then + echo "ERROR: BUILDDIR is undefined" + RET=1 + else + $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "cd $SPECVAR_RPMBUILDDIR/$SPECVAR_BUILDDIR && bash -c '$CONSOLECMD'" + RET=$? + [ $RET -eq 0 ] && RET=-1 + fi + ;; "configurehelp") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "cd $SPECVAR_RPMBUILDDIR/$SPECVAR_BUILDDIR && ./configure --help || ./waf configure --help" RET=$? [ $RET -eq 0 ] && RET=-1 ;; diff --git a/webbuild/webbuild-functions-private b/webbuild/webbuild-functions-private index 104d42d..194ec2e 100644 --- a/webbuild/webbuild-functions-private +++ b/webbuild/webbuild-functions-private @@ -139,6 +139,21 @@ function print_showlogcontrols() { echo -n "REQUEST=showlog&LOGTYPE=send&LOGSTATUSOK=\"+document.all.logstatusOK.checked);> with status: " echo -n "OK " echo -n "FAILED " + # console cmd + echo -n "