mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
Fix python3 setup.py clean failing to read unicode from
debian/changelog.
This commit is contained in:
parent
dbeddb5559
commit
9d09768bd1
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
ubuntu-dev-tools (0.155) UNRELEASED; urgency=medium
|
||||
|
||||
* Fix python3 setup.py clean failing to read unicode from
|
||||
debian/changelog.
|
||||
|
||||
-- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Sat, 17 Jan 2015 15:40:33 +0000
|
||||
|
||||
ubuntu-dev-tools (0.154) experimental; urgency=medium
|
||||
|
||||
[ Logan Rosen ]
|
||||
|
3
setup.py
3
setup.py
@ -5,11 +5,12 @@ import glob
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import codecs
|
||||
|
||||
# look/set what version we have
|
||||
changelog = "debian/changelog"
|
||||
if os.path.exists(changelog):
|
||||
head=open(changelog).readline()
|
||||
head=codecs.open(changelog, 'r', 'utf-8', 'replace').readline()
|
||||
match = re.compile(".*\((.*)\).*").match(head)
|
||||
if match:
|
||||
version = match.group(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user