[Python-modules-commits] [faker] 02/03: Add upstream patch for UnboundLocalError
Brian May
bam at moszumanska.debian.org
Tue Jan 31 06:32:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch master
in repository faker.
commit 08f626e51cf15c88213d6b2474bd56156b0b8ee4
Author: Brian May <bam at debian.org>
Date: Sun Jan 29 08:59:39 2017 +1100
Add upstream patch for UnboundLocalError
---
debian/changelog | 7 +++++++
debian/control | 2 +-
...nboundLocalError-in-Finnish-SSN-generator.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
4 files changed, 31 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 84d5377..f07ca2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+faker (0.7.7-2) UNRELEASED; urgency=medium
+
+ * Fix Non-determistically FTBFS due to tests sometimes exposing
+ UnboundLocalError. Closes: #849333.
+
+ -- Brian May <bam at debian.org> Sun, 29 Jan 2017 08:58:05 +1100
+
faker (0.7.7-1) unstable; urgency=medium
* Team upload.
diff --git a/debian/control b/debian/control
index 5c181bf..379d585 100644
--- a/debian/control
+++ b/debian/control
@@ -1,6 +1,6 @@
Source: faker
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Uploaders: Christopher Baines <mail at cbaines.net>
+Uploaders: Christopher Baines <mail at cbaines.net>, Brian May <bam at debian.org>
Section: python
Priority: optional
Build-Depends: dh-python,
diff --git a/debian/patches/0001-Correct-UnboundLocalError-in-Finnish-SSN-generator.patch b/debian/patches/0001-Correct-UnboundLocalError-in-Finnish-SSN-generator.patch
new file mode 100644
index 0000000..127484d
--- /dev/null
+++ b/debian/patches/0001-Correct-UnboundLocalError-in-Finnish-SSN-generator.patch
@@ -0,0 +1,22 @@
+From: Brian May <bam at debian.org>
+Date: Sun, 29 Jan 2017 08:56:28 +1100
+Subject: Correct UnboundLocalError in Finnish SSN generator
+
+Patch from https://github.com/joke2k/faker/pull/441
+---
+ faker/providers/ssn/fi_FI/__init__.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/faker/providers/ssn/fi_FI/__init__.py b/faker/providers/ssn/fi_FI/__init__.py
+index 44d9ff3..bba2c0b 100644
+--- a/faker/providers/ssn/fi_FI/__init__.py
++++ b/faker/providers/ssn/fi_FI/__init__.py
+@@ -39,7 +39,7 @@ class Provider(SsnProvider):
+ if birthday.year < 2000:
+ separator = '-'
+ else:
+- separator += 'A'
++ separator = 'A'
+ suffix = str(random.randrange(2, 899)).zfill(3)
+ checksum = _checksum(hetu_date + suffix)
+ hetu = "".join([hetu_date, separator, suffix, checksum])
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..fb7bc4d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Correct-UnboundLocalError-in-Finnish-SSN-generator.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/faker.git
More information about the Python-modules-commits
mailing list