Import Adrian Alves's packaging

This commit is contained in:
aviau 2016-04-06 12:14:32 -04:00
parent 947aa4b5c7
commit cbbc408da3
No known key found for this signature in database
GPG key ID: DA82830E3CCC3A3A
3 changed files with 7 additions and 23 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
python-click (6.4-1) unstable; urgency=medium
* New upstream release
* upstream fixed debian patch fix-locale-check.patch
-- Adrian Alves <aalves@gmail.com> Fri, 25 Mar 2016 09:33:30 -0500
python-click (6.2-2) unstable; urgency=medium
* Fixed locale detection error (Closes: #812713)

View file

@ -1,22 +0,0 @@
Description: fixed locale detection error
Origin: vendor
Bug: 812713
Author: Alexandre Viau <aviau@debian.org>
Reviewed-by: Alexandre Viau <aviau@debian.org>
Last-Update: 2016-01-26
Applied-Upstream: https://github.com/mitsuhiko/click/commit/6bc3bf977a16d948841de17a6993ee11587b75b1
--- a/click/_unicodefun.py
+++ b/click/_unicodefun.py
@@ -64,6 +64,11 @@
stderr=subprocess.PIPE).communicate()[0]
good_locales = set()
has_c_utf8 = False
+
+ # Make sure we're operating on text here.
+ if isinstance(rv, bytes):
+ rv = rv.decode('ascii', 'replace')
+
for line in rv.splitlines():
locale = line.strip()
if locale.lower().endswith(('.utf-8', '.utf8')):

View file

@ -1 +0,0 @@
fix-locale-check.patch