In a past message on MP-users, subject of: Re: "Electric" failed to compile, Ryan suggested the use of:

        sudo port -d install electric 2>&1 | tee ~/Desktop/electric.txt

Then asked:
Then file a new ticket in the issue tracker and attach electric.txt from your desktop.

I have been wondering this for a while, and this is a good intro for me to ask...

As a result of any error in MacPorts, a message is written to the terminal of what the error was. What if the last line was:

You may want to try the troubleshooting steps located at: 
http://trac.macports.org/wiki/FAQ#buildfails

Though I would like to point to a new wiki page, where it was much more orderly, a set of steps to try. I see a lot of requests that are answered with "did you clean and try again", "yeah, I did, that worked, thanks".

Maybe that entire dialog could go away, with the pointing of a url at the very end of the error message. Then, within the new wiki page, I would add the "If all else fails...".

        sudo port -d install portname 2>&1 | tee | mp-reporter

* Not sure I have that correct.

The idea is, that the output is passed to a small shell script, mp- reporter, which would automatically create the report in the ticketing system. We would need one account for which this happened under.

I would like to make the mp-reporter script interactive, so if desired, they could login to trac right there, and the ticket would be made under their account. Or they can decline, and it will be made under the general mp-reporter account.

I believe this is something within my abilities to create. I think it can be done with curl and some pretty simple bash scripting. Filing the ticket with the output as an attachment, over putting it into the ticket itself is up for discussion, and would be the only aspect of curl I am not familiar with off the bat.

Comments?
--
Scott * If you contact me off list replace talklists@ with scott@ *

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to