From ee517d71bf3eafd6727c4501f1b902e1fc4b3ef1 Mon Sep 17 00:00:00 2001
From: Scott Kitterman <scott@kitterman.com>
Date: Mon, 7 Jul 2014 02:48:10 -0400
Subject: [PATCH] * Fix error in pydist package relationship regex (Closes:
 #735163)   - Thanks to Rafael Laboissiere for the patch

---
 debian/changelog    | 4 ++++
 debpython/pydist.py | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7d81cfa..2156f5c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,10 @@ python-defaults (2.7.7-1) UNRELEASED; urgency=medium
   * Fix typo in policy doc re: wheel package exception list.
   * Add myself to Uploaders.
 
+  [ Scott Kitterman ]
+  * Fix error in pydist package relationship regex (Closes: #735163)
+    - Thanks to Rafael Laboissiere for the patch
+
  -- Matthias Klose <doko@debian.org>  Mon, 02 Jun 2014 19:54:25 +0200
 
 python-defaults (2.7.6-2) unstable; urgency=medium
diff --git a/debpython/pydist.py b/debpython/pydist.py
index 94ccaeb..4c039aa 100644
--- a/debpython/pydist.py
+++ b/debpython/pydist.py
@@ -114,7 +114,7 @@ def guess_dependency(req, version=None):
         version = getver(version)
 
     # some upstreams have weird ideas for distribution name...
-    name, rest = re.compile('([^><= \[]+)(.*)').match(req).groups()
+    name, rest = re.compile('([^!><= \[]+)(.*)').match(req).groups()
     req = safe_name(name) + rest
 
     data = load()
-- 
GitLab