98
98
def find_changelog(t, merge):
99
99
changelog_file = 'debian/changelog'
101
if not t.has_filename(changelog_file):
103
#Assume LartstiQ's layout (.bzr in debian/)
104
changelog_file = 'changelog'
106
if not t.has_filename(changelog_file):
107
raise DebianError("Could not open debian/changelog or changelog")
109
raise DebianError("Could not open debian/changelog")
110
mutter("Using '%s' to get package information", changelog_file)
111
changelog_id = t.inventory.path2id(changelog_file)
112
contents = t.get_file_text(changelog_id)
103
if not t.has_filename(changelog_file):
105
#Assume LartstiQ's layout (.bzr in debian/)
106
changelog_file = 'changelog'
108
if not t.has_filename(changelog_file):
109
raise DebianError("Could not open debian/changelog or changelog")
111
raise DebianError("Could not open debian/changelog")
112
mutter("Using '%s' to get package information", changelog_file)
113
changelog_id = t.inventory.path2id(changelog_file)
114
contents = t.get_file_text(changelog_id)
113
117
changelog = Changelog(contents)
114
118
return changelog, larstiq