hello, On Sun, Feb 05, 2006 at 02:57:32PM -0500, James R. Van Zandt wrote: > > I made a syntax error in an emacs remove script, which caused the next > package installation to fail. The dpkg message said it would try the > smae script in the new package instead. However, fixing the error > there didn't help: > > /usr/lib/emacsen-common/packages/remove/emacspeak-ss: line 9: accent: command > not found > sudo debi > (Reading database ... 191714 files and directories currently installed.) > Preparing to replace emacspeak-ss 1.9.1-2 (using > emacspeak-ss_1.9.1-2_i386.deb) ... > /usr/lib/emacsen-common/packages/remove/emacspeak-ss: line 9: accent: command > not found > emacs-package-remove: /usr/lib/emacsen-common/packages/remove/emacspeak-ss > emacs emacs20 emacs21 xemacs21 failed at > /usr/lib/emacsen-common/emacs-package-remove line 30. > dpkg: warning - old pre-removal script returned error exit status 9 > dpkg - trying script from the new package instead ... > /usr/lib/emacsen-common/packages/remove/emacspeak-ss: line 9: accent: command > not found > emacs-package-remove: /usr/lib/emacsen-common/packages/remove/emacspeak-ss > emacs emacs20 emacs21 xemacs21 failed at > /usr/lib/emacsen-common/emacs-package-remove line 30. > dpkg: error processing emacspeak-ss_1.9.1-2_i386.deb (--install): > subprocess new pre-removal script returned error exit status 9 > Errors were encountered while processing: > emacspeak-ss_1.9.1-2_i386.deb > > Apparently it just re-ran the old script again. I manually installed > the repaired script so dpkg could replace the package. > > Maybe dpkg's script substitution mechanism fails for emacsen removal > scripts?
In the above log, dpkg did execute the prerm script of the second package, but this second prerm uses the same /usr/lib/emacsen-common/packages/remove/emacspeak-ss file (which is the file containing the typo). I'm not sure it can be fixed easily by either dpkg or dh_installemacsen (I can't think of any other place to fix this): * dpkg can't fix this because it only knows the package prerm script * dh_installemacsen can't fix this because when the prerm script is called, the files are not unpacked and thus dh_installemacsen can't use the second emacsen's remove file. Please dpkg maintainers, comment. (I may be completely wrong in the above points). Kind Regards, -- Nekral -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]