package reportbug retitle 293361 reportbug: warn user about unmodified ITP template content thanks
On 20-May-2008, Sandro Tosi wrote:
> I'm planning to fix it this way: use a regex to search for templates
> line in the body of email ("Version: x.y.z" etc etc), if anything is
> found print something like " * WARNING * Templates information still
> present, please update them before submitting". What about?
This sounds like a good approach.
I've refactored 'debianbts.py' so that it now uses the ITP template
from a module-level attribute, 'debianbts.itp_template'. This should
make it simpler for you to grab its lines and know they're the same
lines as used for the template.
> I don't want to stop user from submitting a bug even if template
> words are still there, but notifying him/her about it: what do you
> think about it?
It would be good to:
* check each line from the template to see if it's present
* warn about every template line (not just one) that was found
unmodified in the message
* allow the user to re-edit the message
--
\ "The whole area of [treating source code as intellectual |
`\ property] is almost assuring a customer that you are not going |
_o__) to do any innovation in the future." —Gary Barnett |
Ben Finney <[EMAIL PROTECTED]>
signature.asc
Description: Digital signature

