# HG changeset patch # User Christophe Lincoln # Date 1487809630 -3600 # Node ID 0cd81dfe65e932ad3b38fbbc2b17d3e1b62425b9 # Parent 2b7f0070810db22052a99fe68ce198ccae9e2918 Some message my mot be sourced: show bug diff -r 2b7f0070810d -r 0cd81dfe65e9 web/bugs.cgi --- a/web/bugs.cgi Thu Feb 23 00:51:16 2017 +0100 +++ b/web/bugs.cgi Thu Feb 23 01:27:10 2017 +0100 @@ -288,7 +288,7 @@ cat << EOT $(get_gravatar "$MAIL" 24) \ Bug $id: $DATE \ -$USER: ${resume}... +${resume}... EOT unset CREATOR USER MAIL } @@ -359,7 +359,16 @@ [ "$msgs" == "0" ] && gettext "No messages" for msg in $(ls -1tr $bugdir/$id/msg.*) do - . $msg + # + # MSG="`tazlocale` should do the work..." make msg.N unsoursable + # Move to text file fo msg content, ex: msg.1.conf msg.1.txt + # + if ! . ${msg}; then + echo "
"
+			echo "ERROR: sourcing $(basename $msg)"
+			cat ${msg}
+			echo "
" + fi if [ "$MSG" ]; then msgid=$(echo $msg | cut -d "." -f 2) del="" @@ -373,6 +382,9 @@ $(echo "$MSG" | wiki_parser) EOT +# +# BUG: $(echo "$MSG" | wiki_parser) +# fi unset USER DATE MSG done