
James Harper <james.harper@bendigoit.com.au> wrote:
It would be nice to be able to cherry pick files to put back again - this isn't the first time I've accidently broken a script while trying to debug it :)
If it's in /etc you can always install etckeeper (unless disk space is a problem) and have the other advantages that arise from having your entire /etc hierarchy under revision control. If it isn't in /etc then I would suggest: 1. debcheckout packagename 2. Make the changes in the checked out files. 3. Change the version number with dch -i for example (or just the dch command line). 4. Rebuild the package and use dpkg -i to install your local version. You can then revert to the official version if your changes don't work as expected. 5. Submit a patch and a bug report.