-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Package: zope-externaleditor Version: 2.7.5-3 Severity: normal Tags: patch
While attempting to purge zope-externaleditor along with other zope packages, an error occurs in the postrm script: dpkg: zope-atcontenttypes: dependency problems, but removing anyway as you request: zope-cmfplone depends on zope-atcontenttypes (>= 1.0); however: Package zope-atcontenttypes is to be removed. (Reading database ... 223426 files and directories currently installed.) Removing zope-atcontenttypes ... Purging configuration files for zope-atcontenttypes ... (Reading database ... 223185 files and directories currently installed.) Removing zope-ploneerrorreporting ... Removing zope-cmfplone ... (Reading database ... 222027 files and directories currently installed.) Removing zope-atrbw ... Purging configuration files for zope-atrbw ... (Reading database ... 222004 files and directories currently installed.) Removing zope2.7-archetypes ... Removing zope2.7-validation ... Removing zope2.7-portaltransforms ... Removing zope2.7-mimetypesregistry ... Removing zope2.7-generator ... Removing zope-securemailhost ... Removing zope-resourceregistries ... Removing zope-plonetranslations ... Removing zope-pts ... Removing zope-kupu ... Removing zope-groupuserfolder ... (Reading database ... 220423 files and directories currently installed.) Removing zope-externaleditor ... /var/lib/dpkg/info/zope-externaleditor.postrm: line 21: /etc/init.d/zope: No such file or directory dpkg: error processing zope-externaleditor (--purge): subprocess post-removal script returned error exit status 1 Errors were encountered while processing: zope-externaleditor E: Sub-process /usr/bin/dpkg returned an error code (1) Ack! Something bad happened while installing packages. Trying to recover: Press return to continue. Looking at the script, it appears that it is trying to restart zope via the init script whether it exists or not. Perhaps a conditional check as contained in the attached patch would allow this to be handled gracefully. Regards, - -- Barry Hawkins site: www.bytemason.org weblog: www.yepthatsme.com Registered Linux User #368650 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDKFfrHuKcDICy0QoRArL7AJ4irR8roanB9R9R4UKaGxwhWFNvPACeKzTw T7htsgmjr63cfVGt8FN1Hiw= =PXvU -----END PGP SIGNATURE-----
--- /var/lib/dpkg/info/zope-externaleditor.postrm 2005-02-25 10:03:37.000000000 -0500 +++ zope-externaleditor.postrm 2005-09-14 12:57:46.000000000 -0400 @@ -18,7 +18,9 @@ case "$1" in remove) - /etc/init.d/zope restart + if [[ -z /etc/init.d/zope ]]; then + /etc/init.d/zope restart + fi ;; purge) ;;

