Package: zope-externaleditor
Version: 0.8-2
Severity: important
Tags: patch

While removing all of zope, including zope-externaleditor, dpkg gives 
the error:

    Removing zope-externaleditor ...
    /var/lib/dpkg/info/zope-externaleditor.postrm: line 21:
    /etc/init.d/zope: Permission denied
    dpkg: error processing zope-externaleditor (--remove):
     subprocess post-removal script returned error exit status 1

It turns out that /etc/init.d/zope is no longer executable:

    $ ls -l /etc/init.d/zope
    -rw-r--r--  1 root root 0 2005-07-18 13:01 /etc/init.d/zope

zope-externaleditor cannot be removed as a result.  Here is a patch to
correct this:

    --- /tmp/zope-externaleditor.postrm     2005-02-25 15:03:37.000000000
    +0000
    +++ /var/lib/dpkg/info/zope-externaleditor.postrm       2005-12-12
    03:04:51.000000000 +0000
    @@ -18,7 +18,7 @@

     case "$1" in
            remove)
    -               /etc/init.d/zope restart
    +               test -x /etc/init.d/zope && /etc/init.d/zope restart
            ;;
            purge)
            ;;

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.14-2-powerpc
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages zope-externaleditor depends on:
ii  debconf                       1.4.59     Debian configuration management sy
pn  zope | zope2.7                <none>     (no description available)

zope-externaleditor recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to