~ubuntu-branches/ubuntu/trusty/python-distutils-extra/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/debian-changes-2.26-2

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt, Manuel de la Pena
  • Date: 2011-03-16 15:56:20 UTC
  • Revision ID: james.westby@ubuntu.com-20110316155620-1vzo426xhwlt2qrf
Tags: 2.26-2
[ Manuel de la Pena ]
DistUtilsExtra/auto.py: Fix ValueError crash when scanning the
ctypes.wintypes import. (LP: #735698)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Upstream changes introduced in version 2.26-2
 
2
 This patch has been created by dpkg-source during the package build.
 
3
 Here's the last changelog entry, hopefully it gives details on why
 
4
 those changes were made:
 
5
 .
 
6
 python-distutils-extra (2.26-2) unstable; urgency=low
 
7
 .
 
8
   [ Manuel de la Pena ]
 
9
   * DistUtilsExtra/auto.py: Fix ValueError crash when scanning the
 
10
     ctypes.wintypes import. (LP: #735698)
 
11
 .
 
12
 The person named in the Author field signed this changelog entry.
 
13
Author: Martin Pitt <mpitt@debian.org>
 
14
Bug-Ubuntu: https://bugs.launchpad.net/bugs/735698
 
15
 
 
16
---
 
17
The information above should follow the Patch Tagging Guidelines, please
 
18
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
19
are templates for supplementary fields that you might want to add:
 
20
 
 
21
Origin: <vendor|upstream|other>, <url of original patch>
 
22
Bug: <url in upstream bugtracker>
 
23
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
24
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
25
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
26
Reviewed-By: <name and email of someone who approved the patch>
 
27
Last-Update: <YYYY-MM-DD>
 
28
 
 
29
--- python-distutils-extra-2.26.orig/DistUtilsExtra/auto.py
 
30
+++ python-distutils-extra-2.26/DistUtilsExtra/auto.py
 
31
@@ -325,6 +325,8 @@ def __external_mod(module, attrs):
 
32
         return False
 
33
     except AttributeError: # builtin modules
 
34
         return False
 
35
+    except ValueError: # weird ctypes case with wintypes
 
36
+        return False 
 
37
 
 
38
     return 'dist-packages' in path or 'site-packages' in path or \
 
39
             not path.startswith(os.path.dirname(os.__file__))