[Pkg-zope-developers] ignoring ancient instances in postinst

martin f krafft madduck@debian.org
Tue, 29 Mar 2005 12:18:00 +0200


--1yeeQ81UyVL57Vl7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Please apply the following patch to dzhandle to make it ignore
ancient instances (which it cannot/should not touch):

--- /usr/sbin/dzhandle  Mon Mar 28 20:15:47 2005
+++ /usr/local/sbin/dzhandle  Tue Mar 29 12:15:21 2005
@@ -1602,7 +1602,11 @@
                   % (a.kind, a.name, self.name)
=20
         addon_technique =3D addon_technique or self.addon_technique
-        assert addon_technique in (ADDON_LINKED, ADDON_TREELINKED, ADDON_C=
OPIED)
+
+        if addon_technique is None:
+          print "(not touching ancient instance %s)" % self.name
+          logging.info("skipped %s `%s'", addon.kind, addon.path)
+          return
        =20
         target_path =3D os.path.join(self.home, addon.subdir, addon.name)
         if addon_technique =3D=3D ADDON_LINKED:

--=20
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
=20
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!
=20
a cigarette a day will make you fly away.

--1yeeQ81UyVL57Vl7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCSStYIgvIgzMMSnURAjmZAJ4kkhwTVGBFhvCp63Plf4lJC+Ta7gCfQqqp
ExjW/659NwZKbe/ehRFsa1o=
=A9lw
-----END PGP SIGNATURE-----

--1yeeQ81UyVL57Vl7--