[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:14815] Re: About conffile and diversion



Mon, Jan 14, 2002 at 04:06:17PM +0900 において
ISHIKAWA Mutsumi さん曰く:

>  テストケース
> 
>  パッケージ: fuga
>    /etc/fuga.conf を conffiles にもっている
> 
>  パッケージ: mope
>    /etc/fuga.conf を持っているが conffiles には含めていない
>    preinst で /etc/fuga.conf を divert する (postrm で divert を戻す)
> 
> 
>  1) fuga_1-1_all.deb をインストール
>  2) mope_1-1_all.deb をインストール
>    -> preinst で divert が発生
>    -> パッケージの展開がおきて mope の /etc/fuga.conf
>       を入れようとしたときに、fuga の /etc/fuga.conf との
>       比較が発生。conffiles の置き換えをするかどうか聞いてくる。

この箇所ですが、私の環境(FM-TOWNS 上での sid) では、
パッケージ mope で、/etc/fuga.conf を conffiles に含めた場合に
発生した、と言うことになります。

今回、xlibs (上記テストケースの fuga に相当)が、たまたま更新される
チャンスに遭遇しましたので、経過を報告しておきます。
(divert したこちら側のパッケージは conffiles を作成していません)

xlibs (xlibs_4.1.0-12) 更新前
-rw-r--r--    1 root     root          599  1月 13 08:25 compat.dir
-rw-r--r--    1 root     root          656  1月 10 03:59 compat.dir.at
                                  ( divert されたオリジナル ↑)
xlibs (xlibs_4.1.0-13) 更新後
-rw-r--r--    1 root     root          599 Jan 13 08:25 compat.dir
-rw-r--r--    1 root     root          656 Jan 10 03:59 compat.dir.at
-rw-r--r--    1 root     root          656 Jan 12 18:28 compat.dir.at.dpkg-new

xbase-clients-towns (divert している帳本人) パージ後
-rw-r--r--    1 root     root          656 Jan 10 03:59 compat.dir
-rw-r--r--    1 root     root          656 Jan 12 18:28 compat.dir.at.dpkg-new

こんな感じで、すべてユーザへの問合せなしに自動的に処理されました。
divert される元のファイルは、FM-TOWNS 側では "ステ"になるので、
これでもいいかなって、思ったり? (ダメ?)
-----------------------------------------------
    近藤 道彦
    KONDOU Mitihiko <shortcut@xxxxxxxxxxxxxxxx>
    URL http://village.infoweb.ne.jp/~shortcut/