~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/buildmaster/model/packagebuild.py

Merged builder-history-bug-890326 into builder-history-lfa.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
from lp.services.helpers import filenameToContentType
54
54
from lp.services.librarian.browser import ProxiedLibraryFileAlias
55
55
from lp.services.librarian.interfaces import ILibraryFileAliasSet
 
56
from lp.services.propertycache import get_property_cache
56
57
from lp.services.webapp.interfaces import (
57
58
    DEFAULT_FLAVOR,
58
59
    IStoreSelector,
299
300
                            % (status, self.buildqueue_record.builder.url))
300
301
            return
301
302
        d = method(librarian, slave_status, logger, send_notification)
302
 
        return d
 
303
 
 
304
        def cleanup(*args):
 
305
            del get_property_cache(self).buildqueue_record
 
306
        return d.addCallback(cleanup)
303
307
 
304
308
    def _release_builder_and_remove_queue_item(self):
305
309
        # Release the builder for another job.