~cjwatson/launchpad-buildd/twisted-17.1.0-compat

« back to all changes in this revision

Viewing changes to lpbuildd/pottery/intltool.py

[r=wgrant] Fall back to the package name from AC_INIT when expanding $(PACKAGE) in
translation configuration files if no other definition can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        config_files = config_files[:-1]
115
115
    for config_file in reversed(config_files):
116
116
        subst_value = config_file.getVariable(substitution.name)
 
117
        if subst_value is None and substitution.name == "PACKAGE":
 
118
            subst_value = _get_AC_PACKAGE_NAME(config_file)
117
119
        if subst_value is not None:
118
120
            # Substitution found.
119
121
            break