~ubuntu-branches/debian/sid/bzr-builddeb/sid

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij, Jelmer Vernooij, Martin Packman
  • Date: 2011-10-01 21:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20111001212705-29f1lpwpsdb2dork
Tags: 2.7.9
[ Jelmer Vernooij ]
* Support .tar.xz Debian files rather than .tar.lzma.

[ Martin Packman ]
* Support non-ascii characters in changelog entry when determining
  commit message. LP: #853664

[ Jelmer Vernooij ]
* Use more complete control file during examples. Closes: #642818

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
    bugs_fixed = find_bugs_fixed([changes], commit.work_tree.branch)
124
124
    commit.builder._revprops["bugs"] = "\n".join(bugs_fixed)
125
125
 
126
 
    return debian_changelog_commit_message(commit, start_message)
 
126
    # Debian Policy Manual states that debian/changelog must be UTF-8
 
127
    return changes.decode("utf-8")
127
128
 
128
129
 
129
130
def changelog_merge_hook_factory(merger):
140
141
    t = branch.repository.revision_tree(revid)
141
142
    config = debuild_config(t, False)
142
143
    try:
143
 
        (changelog, larstiq) = find_changelog(t, config.build_type == BUILD_TYPE_MERGE)
 
144
        (changelog, top_level) = find_changelog(t, config.build_type == BUILD_TYPE_MERGE)
144
145
    except MissingChangelogError:
145
146
        # Not a debian package
146
147
        return None