Package: python-central
Version: 0.5.5
Severity: important
Tags: patch

If /usr/share/python-central/<package> contains a symlink to a
directory, pycentral will create a corresponding empty directory
in /usr/lib/python<version> instead of copying the symlink.

See <http://incoming.debian.org/spe_0.8.2a+repack-1_all.deb> for a
test case.

--- pycentral~
+++ pycentral
@@ -588,7 +588,7 @@
         try:
             for fn in self.shared_files:
                 fn2 = rt.prefix + fn[ppos:]
-                if os.path.isdir(fn):
+                if os.path.isdir(fn) and not os.path.islink(fn):
                     if os.path.isdir(fn2):
                         continue
                     os.makedirs(fn2)
@@ -627,7 +627,7 @@
         shared_files.reverse()
         for fn in shared_files:
             fn2 = rt.prefix + fn[ppos:]
-            if os.path.isdir(fn2):
+            if os.path.isdir(fn2) and not os.path.islink(fn2):
                 try:
                     os.removedirs(fn2)
                 except OSError:

Thanks,

Matej


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to