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

[debian-devel:10153] Re: ja-trans (Re: Uploaded ja-trans 0.3 (source all) to jp )



At Wed, 25 Aug 1999 22:14:53 +0900,
UNO Takeshi <uno@xxxxxxxxxxxxx> wrote:

> >  ・ja-trans には最新 PO ファイルをいれておく
> >    既に含めてもらった PO を含むパッケージについては Replace: を
> >    つけつつ最新版をいれておく。

あぁ 本来あるべきパッケージに含まれていていたら同じものは
入れない方がいいかも…
# update したら最新の方を ja-trans にいれつつ 本来のパッケージへ BTS かな…
# で含まれたらそのPOを削除して ja-trans を dupload

> こういうことって可能なんでしょうか?

技術的には可能のはず。

> > Replace: をつけておくことで、本来そのPOを含むべきpackageとja-trans
> > 両方に含めておいても問題ないはず。本来のpackageだけいれていても
> > 日本語がだせますし、ja-transをいれておいても/後からいれても
> > それをおきかえてくれるので大丈夫だと思います。
> 
> 同じファイル名のものが別パッケージであったとしても、Replaces:があれば
> 上書きしてくれる、ということでしょうか?(これ自体知らなんだ)

そうです。

Packaging Manual より

| 8.5. `Replaces' - overwriting files and replacing packages
| ----------------------------------------------------------
| 
|      The `Replaces' control file field has two purposes, which come into
|      play in different situations.
| 
|      Virtual packages (Section 8.4, `Virtual packages - `Provides'') are
|      not considered when looking at a `Replaces' field - the packages
|      declared as being replaced must be mentioned by their real names.
|
| 8.5.1. Overwriting files in other packages
| ------------------------------------------
| 
|      Firstly, as mentioned before, it is usually an error for a package to
|      contains files which are on the system in another package, though
|      currently the `--force-overwrite' flag is enabled by default,
|      downgrading the error to a warning,
| 
|      If the overwriting package declares that it replaces the one
|      containing the file being overwritten then `dpkg' will proceed, and
|      replace the file from the old package with that from the new. The file
|      will no longer be listed as `owned' by the old package.
| 
|     If a package is completely replaced in this way, so that `dpkg' does
|     not know of any files it still contains, it is considered to have
|     disappeared. It will be marked as not wanted on the system (selected
|     for removal) and not installed. Any conffiles details noted in the
|     package will be ignored, as they will have been taken over by the
|     replacing package(s). The package's `postrm' script will be run to
|     allow the package to do any final cleanup required. See Section 6.2,
|     `Summary of ways maintainer scripts are called'.
|
|     In the future `dpkg' will discard files which overwrite those from
|     another package which declares that it replaces the one being
|     installed (so that you can install an older version of a package
|     without problems).
|
|     This usage of `Replaces' only takes effect when both packages are at
|     least partially on the system at once, so that it can only happen if
|     they do not conflict or if the conflict has been overridden.

> ja-transを入れた後、本来のパッケージを削除、本来のパッケージが更新
> (poが更新されているとは限らない)された場合、はたまたja-transのみ
> 削除した場合に矛盾が生じるような気がするのですが、
> 違ってたらご指摘ください。

dpkg的に矛盾は生じないはずですが、変なタイミング ja-trans を削除すると
ちょっと悲しいかも…
# 後から ja-trans をいれて、削除すると日本語メッセージが
# でなくなってしまうような…
本来のパッケージが更新された場合は、それに追随したPOを含めた
ja-transを出して、BTSして含めてもらうように要請すればいいんでは
ないかなぁ。

-- 
鵜飼文敏