diff --git a/webbuild/html/webbuild.html b/webbuild/html/webbuild.html index a12afd9..8022808 100644 --- a/webbuild/html/webbuild.html +++ b/webbuild/html/webbuild.html @@ -226,6 +226,7 @@ function ajax_getvalues(request,confirm) {
+
diff --git a/webbuild/webbuild-cgi b/webbuild/webbuild-cgi index 15311b3..78ff9cb 100755 --- a/webbuild/webbuild-cgi +++ b/webbuild/webbuild-cgi @@ -76,6 +76,7 @@ if [ "$USER" ]; then echo -n " " echo -n " " echo -n " " + echo -n " " echo -n " " echo -n " " echo -n "" @@ -97,6 +98,7 @@ elif [ "$REQUEST" != "refresh" ]; then echo -n " " echo -n " " echo -n " " + echo -n " " echo -n " " echo -n " " echo -n "" @@ -110,6 +112,7 @@ if [ "$USER_ENABLED" != "1" -a "$REQUEST" != "refresh" ]; then echo -n " " echo -n " " echo -n " " + echo -n " " echo -n " " if [ "$USER" ]; then if [ "$REQUEST" = "enablerequest" ]; then @@ -596,6 +599,7 @@ fi if [ ! "$REPOSITORY" -a ! "$PACKAGE" -a ! "$REQUEST" = "repsearch" ]; then echo -n " " echo -n " " + echo -n " " fi # REPOSITORIES search @@ -863,7 +867,7 @@ if [ "$REQUEST" = "prepare" -o "$REQUEST" = "updatespec" -o "$REQUEST" = "speccr $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" "" "$AUTOSPEC_CMD -s \"$SPECCREATEURL\" $AUTOSPEC_CMDLINE --changelog \"package created by $USER using the webbuild interface\"" RET=$? [ $RET -eq 0 ] && { - social_log "SUSER=$USER SEMAIL=$USER_EMAIL STARGET=developers STEXT=\"is working on $PACKAGE new package\" STIME=`date +%s`" + social_log "SUSER=$USER SEMAIL=$USER_EMAIL STARGET=developers STEXT=\"is working on $PACKAGE new package in `print_environment_descr $ENVIRONMENT` environment\" STIME=`date +%s`" echo "
HINT: don't forget to add build requirements after successful build! Edit specfile and check recreate SRPM before sending the package." } else @@ -874,7 +878,7 @@ if [ "$REQUEST" = "prepare" -o "$REQUEST" = "updatespec" -o "$REQUEST" = "speccr "renamespec") $SUDO_WRAPPER 0 $ENVIRONMENT "$USER" $PACKAGE "mv $RENAMESPECFROM.spec $PACKAGE.spec && sed -i \"s|\(Name:[[:space:]]*\).*|\1$PACKAGE|\" $PACKAGE.spec" RET=$? [ $RET -eq 0 ] && { - social_log "SUSER=$USER SEMAIL=$USER_EMAIL STEXT=\"renamed $RENAMESPECFROM to $PACKAGE\" STIME=`date +%s`" + social_log "SUSER=$USER SEMAIL=$USER_EMAIL STEXT=\"renamed $RENAMESPECFROM to $PACKAGE in `print_environment_descr $ENVIRONMENT` environment\" STIME=`date +%s`" echo "Specfile $RENAMESPECFROM successfully renamed to $PACKAGE." } ;; @@ -924,6 +928,7 @@ if [ "$REQUEST" = "prepare" -o "$REQUEST" = "updatespec" -o "$REQUEST" = "speccr echo -n "]]>" if [ "$REQUEST" = "exit" ]; then echo -n " " + echo -n " " echo -n " " echo -n " " echo -n "" @@ -932,6 +937,11 @@ if [ "$REQUEST" = "prepare" -o "$REQUEST" = "updatespec" -o "$REQUEST" = "speccr if [ $RET -eq 0 ]; then REQUEST="edit" print_editorcontrols + if [ "$PACKAGE" ]; then + if [ "$STATE_ADVANCEDCONTROLS" -o "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then + print_showlogcontrols + fi + fi else REQUEST= fi @@ -942,6 +952,7 @@ if [ "$MAINTAINERMODE" = "true" ]; then if [ ! "$REQUEST" -o "$REQUEST" = "changerepository" -o \ "$REQUEST" = "switchmaintainermode" -o "$REQUEST" = "reloadmaintainer" ]; then echo -n " " + echo -n " " echo -n " " if [ "$REPOSITORY" ]; then echo -n "" # echo -n "]]>" print_editorcontrols + if [ "$PACKAGE" ]; then + if [ "$STATE_ADVANCEDCONTROLS" -o "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then + print_showlogcontrols + fi + fi fi REQUEST= fi @@ -1229,22 +1245,22 @@ if [ "$MAINTAINERMODE" != "true" ]; then fi fi if [ "$PACKAGE" ]; then - if [ "$STATE_ADVANCEDCONTROLS" -o "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then - # autodist logs - echo -n "

Last autodist logs: " - echo -n "OK " - echo -n "FAILED
" - echo -n "" - echo -n "" - echo -n "" - echo -n "" - echo -n "" - fi +# if [ "$STATE_ADVANCEDCONTROLS" -o "${AUTOPORT_UPDATE[$ENVIRONMENT]}" ]; then +# # autodist logs +# echo -n "
Last autodist logs: " +# echo -n "OK " +# echo -n "FAILED
" +# echo -n "" +# echo -n "" +# echo -n "" +# echo -n "" +# echo -n "" +# fi echo -n "
RPM packaging commands:
" # check for updates echo -n "${SPECVAR_Patch_idx[$i-1]}: $patchname" + echo -n "" done echo -n "" # list build dir files @@ -1392,7 +1408,7 @@ if [ "$MAINTAINERMODE" != "true" ]; then autospectemplatename=`basename $f` echo -n "" done - echo -n "
" + echo -n "" # macros echo -n "" + echo -n "" + echo -n "" + echo -n "" + echo -n " with status: " + echo -n "OK " + echo -n "FAILED " + # close tag + echo -n "]]>" +} + + function print_editorcontrols() { echo -n "