Bug#382773: [Pkg-zope-developers] Bug#382773: zope-common - dzhandle removes products without notice

Bastian Blank waldi at debian.org
Mon Sep 18 12:51:44 UTC 2006


On Sun, Aug 13, 2006 at 03:04:06PM +0200, Fabio Tranchitella wrote:
> Hi Bastian, could you please explain with more details when this happens?
> Are you using a manually created zope instance or the one provided by
> plone-site or cps-site? Could you please post here the command line you
> used to make the instance, the list of products which are installed (both
> manually and using dzhandle) and the list of products you are upgrading?

Okay, I got too many errors, will summerize them:

The given instance is not changed as root.

| # dzhandle add-product $INSTANCE CMFUid:Plone-2.5 
| Traceback (most recent call last):
|   File "/usr/sbin/dzhandle", line 2275, in ?
|     main()
|   File "/usr/sbin/dzhandle", line 2270, in main
|     rv = action.run(global_options)
|   File "/usr/sbin/dzhandle", line 999, in run
|     self.instance.add_addon(addon, global_options, self.options.atechnique)
|   File "/usr/sbin/dzhandle", line 1811, in add_addon
|     uid=global_options.uid, gid=global_options.gid)
|   File "/usr/sbin/dzhandle", line 1939, in copytree
|     os.chown(destdir, uid, gid)
| OSError: [Errno 1] Operation not permitted: '/var/lib/zope2.9/instance/$INSTANCE/Products/CMFUid'

Hu?

| dzhandle -f remove-product $INSTANCE CMFUid:Plone-2.5 
| dzhandle remove-product: product `CMFUid' not installed in instance `$INSTANCE'

Does it use a registry to see what is installed?

| dzhandle add-product -t linked $INSTANCE CMFUid:Plone-2.5 
| dzhandle add-product: addon technique `2' doesn't match the instance's default (`3'). Use -f to override

Why do I need to force an override?

If I have it installed in tree-linked mode, I get the following warning from
the dzhandle calls in the package scripts

| dzhandle prerm-product: keep product `CMFUid' in instance `$INSTANCE' not installed from `/usr/share/zope/Products/CMFUid:Plone-2.5'

and nothing is changed. If I had it in linked mode, the link is removed and
replaced with a tree-linked version with the wrong owner.

Bastian

-- 
If I can have honesty, it's easier to overlook mistakes.
		-- Kirk, "Space Seed", stardate 3141.9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-zope-developers/attachments/20060918/a36e0bc7/attachment.pgp


More information about the Pkg-zope-developers mailing list