From 46190866121dfd4dff7f016467734a7bef2c51f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org>
Date: Sat, 29 Jan 2011 12:46:37 +0100
Subject: [PATCH] pycompile: --exclude now works with private dirs

---
 debian/changelog | 1 +
 pycompile        | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 57690be..fab6cfb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-defaults (2.6.6-11) UNRELEASED; urgency=low
     - replace a file with a symlink also if there's a matching one in
       pyshared directory already
     - add support for DH_OPTIONS env. variable
+  * pycompile: --exclude now works with private dirs
 
  -- Piotr Ożarowski <piotr@debian.org>  Sat, 15 Jan 2011 21:14:38 +0100
 
diff --git a/pycompile b/pycompile
index de28868..3e1b5a1 100755
--- a/pycompile
+++ b/pycompile
@@ -128,6 +128,8 @@ def get_exclude_patterns(directory='/', patterns=None, versions=None):
     if patterns:
         if versions is None:
             versions = set(SUPPORTED)
+        else:
+            versions = set(versions)
         patterns = [('re', versions, directory, i) for i in patterns]
     else:
         patterns = []
-- 
GitLab