r1284 - in zope-common/trunk (debian/changelog dzhandle)

Fabio Tranchitella kobold at alioth.debian.org
Sun Aug 3 07:22:19 UTC 2008


    Date: Sunday, August 3, 2008 @ 07:22:17
  Author: kobold
Revision: 1284

dzhandle: applied patch from quest at lysator.liu.se to fix a typo in the
libraries handling. (Closes: #493354)

Modified:
  zope-common/trunk/debian/changelog
  zope-common/trunk/dzhandle

Modified: zope-common/trunk/debian/changelog
===================================================================
--- zope-common/trunk/debian/changelog	2008-07-31 18:12:43 UTC (rev 1283)
+++ zope-common/trunk/debian/changelog	2008-08-03 07:22:17 UTC (rev 1284)
@@ -1,3 +1,10 @@
+zope-common (0.5.45) unstable; urgency=low
+
+  * dzhandle: applied patch from quest at lysator.liu.se to fix a typo in the
+    libraries handling. (Closes: #493354)
+
+ -- Fabio Tranchitella <kobold at debian.org>  Sun, 03 Aug 2008 09:21:18 +0200
+
 zope-common (0.5.44) unstable; urgency=low
 
   * debian/po/sv.po: updated, thanks Martin Ã…gren. (Closes: #492119)

Modified: zope-common/trunk/dzhandle
===================================================================
--- zope-common/trunk/dzhandle	2008-07-31 18:12:43 UTC (rev 1283)
+++ zope-common/trunk/dzhandle	2008-08-03 07:22:17 UTC (rev 1284)
@@ -2049,7 +2049,7 @@
         dzlib = os.path.join(addon.path, '.dzlib')
         if os.path.isdir(dzlib):
             for dir in os.listdir(dzlib):
-                if not os.path.exists(os.path.join(dzlib, dir)):
+                if not os.path.exists(os.path.join(self.home, 'lib', 'python', dir)):
                     os.symlink(os.path.join(dzlib, dir),
                         os.path.join(self.home, 'lib', 'python', dir))
 
@@ -2079,7 +2079,8 @@
         dzlib = os.path.join(addon.path, '.dzlib')
         if os.path.isdir(dzlib):
             for dir in os.listdir(dzlib):
-                os.remove(os.path.join(self.home, 'lib', 'python', dir))
+                if os.path.exists(os.path.join(self.home, 'lib', 'python', dir)):
+                    os.remove(os.path.join(self.home, 'lib', 'python', dir))
 
         if addon.is_global:
             os.unlink(os.path.join(self.home, addon.subdir, addon.name) + '.installed')




More information about the pkg-zope-commits mailing list