diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-02-22 21:06:08 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-02-22 21:06:08 +0000 |
commit | eb3159170c430500e533bb7da7d4da175bc7a8a6 (patch) | |
tree | e1146116dc378e0c037b5e06df98f255d853956d | |
parent | 8373966f582c204e95cce5f796a96dbfa7082da8 (diff) | |
download | unperish-eb3159170c430500e533bb7da7d4da175bc7a8a6.tar.gz |
Avoid successive edits of debian/changelog in the build area
-rwxr-xr-x | unperish | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -373,8 +373,15 @@ class Unperish(cliapp.Application): for spec in self.settings['basetgz']: target, arch, path = self.parse_basetgz(spec) targets[target] = targets.get(target, []) + [(arch, path)] + + deb_changelog = self.join(self.dirname, 'debian', 'changelog') + with open(deb_changelog) as f: + changelog_text = f.read() + for target in sorted(targets.keys()): if target: + with open(deb_changelog, 'w') as f: + f.write(changelog_text) self.add_debian_changelog_entry(target) for arch, path in targets[target]: self.run_subcommand('dsc', force=True) |