Merge lp:~brian-murray/ubuntu/oneiric/apport/conffile-handling into lp:~ubuntu-core-dev/ubuntu/oneiric/apport/ubuntu
Proposed by
Brian Murray
Status: | Merged |
---|---|
Merged at revision: | 1802 |
Proposed branch: | lp:~brian-murray/ubuntu/oneiric/apport/conffile-handling |
Merge into: | lp:~ubuntu-core-dev/ubuntu/oneiric/apport/ubuntu |
Diff against target: |
76 lines (+22/-4) (has conflicts) 3 files modified
apport/hookutils.py (+9/-2) data/general-hooks/ubuntu.py (+2/-2) debian/changelog (+11/-0) Text conflict in debian/changelog |
To merge this branch: | bzr merge lp:~brian-murray/ubuntu/oneiric/apport/conffile-handling |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt | Approve | ||
Review via email:
|
Description of the change
This branch raises a yes / no dialog in the event that a conffile is modified so that the reporter can make an informed decision about including the modified conffile.
I'd really rather that ui be a required argument to attach_conffiles so that source package hooks must pass ui to it as its possible the person writing the source package hook isn't familiar with the conffiles provided by the package and their contents.
If need be I'm willing to modify the source package hooks that call attach_conffiles to pass ui and then change the argument so that it no longer defaults to None.
To post a comment you must log in.
Thanks for this!
Some remarks:
* Please don't change the API of attach_conffiles, i. e. add the new ui argument as the last one.
* attach_conffiles() should not crash with a None ui, i. e. please check ui before calling yesno.
* Needs "from apport import unicode_gettext as _" and wrapping the user visible string in _() for i18n
* the "report[key] = '[modified]'" can just go into the else branch of the third if, and the first two ifs (which are redundant, "not False" is true) can be removed.
Thanks,
Martin