2004-04-03 James Troup <james@nocrew.org> * debian/control (Depends): add python2.1-email | python (>= 2.2) needed for new utils.rfc2047_encode() function. * utils.py (re_parse_maintainer): allow whitespace inside the email address. (Error): new exception base class. (ParseMaintError): new exception class. (force_to_utf8): new function. (rfc2047_encode): likewise. (fix_maintainer): rework. use force_to_utf8() to force name and rfc822 return values to always use UTF-8. use rfc2047_encode() to return an rfc2047 value. Validate the address to catch missing email addresses and (some) broken ones. * katie.py (nmu_p.is_an_nmu): adapt for new utils.fix_maintainer() by adopting foo2047 return value. (Katie.dump_vars): add changedby2047 and maintainer2047 as mandatory changes fields. Promote changes and maintainer822 to mandatory fields. (Katie.update_subst): default maintainer2047 rather than maintainer822. User foo2047 rather than foo822 when setting __MAINTAINER_TO__ or __MAINTAINER_FROM__. * jennifer (check_changes): set default changes["maintainer2047"] and changes["changedby2047"] values rather than their 822 equivalents. Makes changes["changes"] a mandatory field. Adapt to new utils.fix_maintainer() - reject on exception and adopt foo2047 return value. (check_dsc): if a mandatory field is missing don't do any further checks and as a result reduce paranoia about dsc[var] existence. Validate the maintainer field by calling new utils.fix_maintainer(). * ashley (main): add changedby2047 and maintainer2047 to mandatory changes fields. Promote maintainer822 to a mandatory changes field. add "pool name" to files fields. * test/006/test.py: new file - tests for new utils.fix_maintainer().