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

Fabio Tranchitella kobold at alioth.debian.org
Fri Nov 30 17:38:50 UTC 2007


    Date: Friday, November 30, 2007 @ 17:38:49
  Author: kobold
Revision: 1067

  + handle product-specific libraries stored in the .dzlib subdirectory
    of the product: symlink them and remove the symlink on uninstall.

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

Modified: zope-common/trunk/debian/changelog
===================================================================
--- zope-common/trunk/debian/changelog	2007-11-30 17:20:58 UTC (rev 1066)
+++ zope-common/trunk/debian/changelog	2007-11-30 17:38:49 UTC (rev 1067)
@@ -13,6 +13,8 @@
   * dzhandle:
     + accept a username-only paramter for the --service-user switch.
     + don't show useless actions in the help screen, noone uses them.
+    + handle product-specific libraries stored in the .dzlib subdirectory
+      of the product: symlink them and remove the symlink on uninstall.
 
 
   [ Bernd Zeimetz ]
@@ -23,7 +25,7 @@
   * Describe the requiered options and default settings for make-instance.
     Thanks to Ross Boylan (Closes: #436148).
 
- -- Bernd Zeimetz <bernd at bzed.de>  Thu, 29 Nov 2007 20:12:55 +0100
+ -- Fabio Tranchitella <kobold at debian.org>  Fri, 30 Nov 2007 18:22:15 +0100
 
 zope-common (0.5.37) unstable; urgency=low
 

Modified: zope-common/trunk/dzhandle
===================================================================
--- zope-common/trunk/dzhandle	2007-11-30 17:20:58 UTC (rev 1066)
+++ zope-common/trunk/dzhandle	2007-11-30 17:38:49 UTC (rev 1067)
@@ -2046,6 +2046,12 @@
             if global_options.verbose:
                 print "copied: %s -> %s" % (addon.path, target_path)
 
+        dzlib = os.path.join(addon.path, '.dzlib')
+        if os.path.isdir(dzlib):
+            for dir in os.listdir(dzlib):
+                os.symlink(os.path.join(dzlib, dir),
+                    os.path.join(self.home, 'lib', 'python', dir))
+
         added_addon = addon.addonClass(target_path, False)
         self._installed_addons.append(added_addon)
         logging.info("added %s `%s'", added_addon.kind, added_addon.path)
@@ -2069,6 +2075,12 @@
                 if os.path.exists(target):
                     os.unlink(target)
 
+        dzlib = os.path.join(addon.path, '.dzlib')
+        if os.path.isdir(dzlib):
+            for dir in os.listdir(dzlib):
+                os.symlink(os.path.join(dzlib, dir),
+                    os.path.join(self.home, 'lib', 'python', dir))
+
         if addon.is_global:
             os.unlink(os.path.join(self.home, addon.subdir, addon.name) + '.installed')
         elif installed.type == ADDON_LINKED:




More information about the pkg-zope-commits mailing list