~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to buildmailman.py

  • Committer: Max Bowsher
  • Date: 2009-09-11 02:17:29 UTC
  • mto: This revision was merged to the branch mainline in revision 9401.
  • Revision ID: maxb@f2s.com-20090911021729-s53vpqlbywi0805c
Make comment more detailed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    else:
42
42
        return 0
43
43
 
44
 
    # Clear out the cache so we can try again after building it:
 
44
    # sys.path_importer_cache is a mapping of elements of sys.path to importer
 
45
    # objects used to handle them. In Python2.5+ when an element of sys.path is
 
46
    # found to not exist on disk, a NullImporter is created and cached - this
 
47
    # causes Python to never bother re-inspecting the disk for that path
 
48
    # element. We must clear that cache element so that our second attempt to
 
49
    # import MailMan after building it will actually check the disk.
45
50
    del sys.path_importer_cache[mailman_path]
46
51
 
47
52
    # Make sure the target directories exist and have the correct