Merge lp:~jml/pkgme-devportal/delete-lp-cache into lp:pkgme-devportal
Proposed by
Jonathan Lange
Status: | Merged |
---|---|
Approved by: | James Westby |
Approved revision: | 40 |
Merged at revision: | 39 |
Proposed branch: | lp:~jml/pkgme-devportal/delete-lp-cache |
Merge into: | lp:pkgme-devportal |
Diff against target: |
57 lines (+19/-3) 2 files modified
devportalbinary/database.py (+18/-3) setup.py (+1/-0) |
To merge this branch: | bzr merge lp:~jml/pkgme-devportal/delete-lp-cache |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Westby | Approve | ||
Review via email: mp+98823@code.launchpad.net |
Commit message
Delete launchpadlib cache after fetching symbols.
Description of the change
I ran the package importer overnight using pkgme-binary to import binary packages. I hit the disk usage limit, as for every package it would create a temporary directory for the launchpadlib cache to avoid dependency issues, but it would never delete that directory. Each of the directories was 1.5MB, so this quickly hit the ~7G disk size.
This patch turns our launchpadlib acquisition helper into a Fixture, and makes fixtures a direct dependency of pkgme-binary.
To post a comment you must log in.
Good catch, thanks.
Thanks for taking on the lplib bug as well.
James