mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 16:11:15 +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
|
ubuntu-dev-tools (0.154) experimental; urgency=medium
|
||||||
|
|
||||||
[ Logan Rosen ]
|
[ Logan Rosen ]
|
||||||
|
3
setup.py
3
setup.py
@ -5,11 +5,12 @@ import glob
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
import codecs
|
||||||
|
|
||||||
# look/set what version we have
|
# look/set what version we have
|
||||||
changelog = "debian/changelog"
|
changelog = "debian/changelog"
|
||||||
if os.path.exists(changelog):
|
if os.path.exists(changelog):
|
||||||
head=open(changelog).readline()
|
head=codecs.open(changelog, 'r', 'utf-8', 'replace').readline()
|
||||||
match = re.compile(".*\((.*)\).*").match(head)
|
match = re.compile(".*\((.*)\).*").match(head)
|
||||||
if match:
|
if match:
|
||||||
version = match.group(1)
|
version = match.group(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user