The first step to provide any kind of option to clean/organize the bughelper 
attachment - cache is to rename the path to the attachments.
current implementation:
~/.bughelper/attachments-cache/<librarian.launchpad-ID>/<file>
* The correlation PATH -> BUGNR is impossible

My suggestion is to change the path into:
~/.bughelper/attachments-cache/<bugnr>/<librarian.launchpad-ID>/<file>
* all files attached to a bug are in one folder

The attached patch against .main r117 provides a "on the fly" solution for 
renaming the paths:
* Whenever a cached file is used by bughelper, this file is moved into the new 
path, old path is deleted
* New files are saved in the new path

Needs to be reviewed so it can be merged into bughelper.main!

Regards
Markus


** Attachment added: "change attachment path"
   http://librarian.launchpad.net/6847123/change_attachment_patch_87448.patch

-- 
cleaning bug helper cache
https://launchpad.net/bugs/87448

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to