~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to buildmailman.py

  • Committer: Barry Warsaw
  • Date: 2007-12-20 14:08:10 UTC
  • mto: This revision was merged to the branch mainline in revision 5417.
  • Revision ID: barry@canonical.com-20071220140810-urjcepw2qq7wfsvx
If there is no <mailman> or <mailman-build> section, there's nothing to build, so return immediately.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
def build_mailman():
21
21
    # Build and install Mailman if it is enabled and not yet built.
 
22
    if config.mailman is None or config.mailman.build is None:
 
23
        # There is no <mailman> or <mailman-build> section in the
 
24
        # configuration file, so there's nothing to build.
 
25
        return 0
22
26
    mailman_path = config.mailman.build.prefix
23
27
    mailman_bin = os.path.join(mailman_path, 'bin')
24
28
    var_dir = os.path.abspath(config.mailman.build.var_dir)