diff -Nru python-pip-1.5.4/debian/changelog python-pip-1.5.4/debian/changelog --- python-pip-1.5.4/debian/changelog 2015-06-16 19:26:28.000000000 +0000 +++ python-pip-1.5.4/debian/changelog 2016-06-27 17:40:48.000000000 +0000 @@ -1,3 +1,10 @@ +python-pip (1.5.4-1ubuntu4) trusty-proposed; urgency=medium + + * fix legacy resion format support (LP: #1445947): + - d/p/fix_legacy_version_format_support.patch + + -- Liang Chen Mon, 27 Jun 2016 10:40:48 -0700 + python-pip (1.5.4-1ubuntu3) trusty-proposed; urgency=medium * d/control: Add missing versioned dependencies. diff -Nru python-pip-1.5.4/debian/patches/fix_legacy_version_format_support.patch python-pip-1.5.4/debian/patches/fix_legacy_version_format_support.patch --- python-pip-1.5.4/debian/patches/fix_legacy_version_format_support.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-pip-1.5.4/debian/patches/fix_legacy_version_format_support.patch 2016-06-27 17:40:29.000000000 +0000 @@ -0,0 +1,23 @@ +From 6cab71f422f2425b4d2283023c9e955f9663dde6 Mon Sep 17 00:00:00 2001 +From: Donald Stufft +Date: Sat, 20 Dec 2014 15:50:25 -0500 +Subject: [PATCH] Fix ``pip list`` when there is an invalid PEP 440 version + installed + +--- + pip/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: python-pip-1.5.4/pip/__init__.py +=================================================================== +--- python-pip-1.5.4.orig/pip/__init__.py 2016-05-26 10:35:54.536398385 +0000 ++++ python-pip-1.5.4/pip/__init__.py 2016-05-26 10:35:54.532398385 +0000 +@@ -283,7 +283,7 @@ + editable = False + req = dist.as_requirement() + specs = req.specs +- assert len(specs) == 1 and specs[0][0] == '==' ++ assert len(specs) == 1 and specs[0][0] in ["==", "==="] + version = specs[0][1] + ver_match = cls._rev_re.search(version) + date_match = cls._date_re.search(version) diff -Nru python-pip-1.5.4/debian/patches/series python-pip-1.5.4/debian/patches/series --- python-pip-1.5.4/debian/patches/series 2015-06-05 18:46:43.000000000 +0000 +++ python-pip-1.5.4/debian/patches/series 2016-06-27 17:40:29.000000000 +0000 @@ -4,3 +4,4 @@ better-error-message.patch scripttest-version.diff debian-771794.patch +fix_legacy_version_format_support.patch