Hi, > The following packages will be REMOVED: > xdvik-ja > 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. > After this operation, 995kB disk space will be freed. > (Reading database ... 14906 files and directories currently installed.) > Removing xdvik-ja ... > update-alternatives: using /usr/bin/xdvi-xaw to provide /usr/bin/xdvi.bin (xdvi.bin) in auto mode. > W: xdvik-ja: Application not found. > dpkg: error processing xdvik-ja (--remove): > subprocess installed pre-removal script returned error exit status 1 It is caused by defoma-app, - defoma-app exists - but no xdvik-ja entry in defoma - defoma-app returns error and exit since -e is set Just ignore defoma-app error seems to be good. see attached patch. thanks. -- Regards, Hideki Yamane henrich @ debian.or.jp/iijmio-mail.jp http://wiki.debian.org/HidekiYamane
diff -urN xdvik-ja-22.84.13-j1.34/debian/changelog xdvik-ja-22.84.13-j1.34.new/debian/changelog
--- xdvik-ja-22.84.13-j1.34/debian/changelog 2010-03-29 19:45:33.000000000 +0900
+++ xdvik-ja-22.84.13-j1.34.new/debian/changelog 2010-03-29 19:32:45.000000000 +0900
@@ -1,3 +1,11 @@
+xdvik-ja (22.84.13-j1.34-2.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * debian/xdvik-ja.prerm
+ - ignore error when xdvik-ja is not entried with defoma.
+
+ -- Hideki Yamane (Debian-JP) <henrich@debian.or.jp> Mon, 29 Mar 2010 19:31:15 +0900
+
xdvik-ja (22.84.13-j1.34-2.1) unstable; urgency=low
* NMU. In fact this is a co-operation with a maintainer and an uploader.
diff -urN xdvik-ja-22.84.13-j1.34/debian/xdvik-ja.prerm xdvik-ja-22.84.13-j1.34.new/debian/xdvik-ja.prerm
--- xdvik-ja-22.84.13-j1.34/debian/xdvik-ja.prerm 2010-03-29 19:45:33.000000000 +0900
+++ xdvik-ja-22.84.13-j1.34.new/debian/xdvik-ja.prerm 2010-03-29 19:31:08.000000000 +0900
@@ -21,12 +21,12 @@
remove)
update-alternatives --remove xdvi.bin /usr/bin/xdvi-ja.real
if [ -x /usr/bin/defoma-app ]; then
- defoma-app purge xdvik-ja
+ defoma-app -t purge xdvik-ja
fi
;;
upgrade)
if [ -x /usr/bin/defoma-app ]; then
- defoma-app purge xdvik-ja
+ defoma-app -t purge xdvik-ja
fi
;;
deconfigure|failed-upgrade)
Attachment:
pgpoF28SM4HF3.pgp
Description: PGP signature