[debian-devel:19048] Re: [debian-devel:19047] Re: silversearcher-ag{,-el} の更新
Hajime MIZUNO <[email protected]>
| Newsgroups | gmane.linux.debian.jp.devel |
|---|---|
| Message-ID | <CAHkmWEOGW73VtbSwm8StvD-+4y2evNcVoYGZTa9=Sz+-jW=Q0g@mail.gmail.com> |
水野です。 2015年10月13日 6:08 Hideki Yamane <[email protected]>: > メンテナスクリプトの preinst postinst postrm で全く同一の > 作業(*)が記述されていますが、これはどこの時点で行うのが適切ですか? > 1つだけでいいように思います(複数記述せよ、という指摘があれば > それを教えて下さい) やまねさん、確認ありがとうございます。 旧バージョンの設定ファイルを削除するのが目的なので、preinstだけでいい のかなーと思っていたのですが、それだとpiupartsが 2m12.7s ERROR: FAIL: Package purging left files on system: /etc/bash_completion.d/ag.dpkg-remove not owned とエラーを出しました。 man dpkg-maintscript-helperを見ると Many of those tasks require coordinated actions from several maintainer scripts (preinst, postinst, prerm, postrm). To avoid mistakes the same call simply needs to be put in all scripts and the program will auto- matically adapt its behaviour based on the environment variable DPKG_MAINTSCRIPT_NAME and on the maintainer scripts arguments that you have to forward after a double hyphen. とあり、実際に他のパッケージ(自分は例としてsubversionを見てみました)で もpreinst postinst postrmそれぞれに dpkg-maintscript-helper rm_conffile が記述されていたので、複数記述するものなのかな、と考えた次第です。 -- Regards, 水野 源 <[email protected]> Key fingerprint = 9B07 B934 B70C 8482 8892 E276 502E 0713 4EEF 9E8D