[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:04101] Re: about diversion
樽石です。
From: nakahara@xxxxxxxxxxxxxxxxxxxxx
Subject: [debian-devel:04100] Re: about diversion
Date: Sat, 20 Jun 1998 00:25:45 +0900
Message-ID: <19980619152856.1841.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
nakahara> > Installation consists of the following steps:
nakahara> > 1. Extract the controlfiles of the new package.
nakahara> > 2. If another version of the same package was
nakahara> > installed before the new installation, execute
nakahara> > prerm script of the old package.
nakahara> > 3. Run preinst script, if provided by the package.
nakahara> > 4. Unpack the files and at the same time, backup
nakahara> > the old files so that if something goes wrong, we
nakahara> > can restore them.
nakahara> > 5. If another version of the same package was
nakahara> > installed before the new installation, execute the
nakahara> > postrm script of the old package. Note that this
nakahara> > script is executed after the preinst script of the
nakahara> > new package, because new files are written at the
nakahara> > same time, old files are removed.
nakahara> > 6. eonfigure the package. See --configure for
nakahara> > detailed information about how this is done.
nakahara> >
nakahara> > のようにしかしないようです。
nakahara>
nakahara> これは Package Manual 6.3 と 6.4 に書いてあることを単純化して書いてあ
nakahara> るにすぎないと思います。
そうですか?
だってこの文のどこにもupgradeならこうするとかいう記述は
書いてありません。
実際upgrade時だろうがなんだろうが
old-prerm (if exist)-> new-preinst -> old-postrm (if exist)-> new-postinst
のように呼ばれます。
というわけで
nakahara> でも簡単に score file があれば作らないというのではだめだったんですか?
post/pre-rmに削除するスクリプトを書いてしまうと
postinst時は常にscore fileがないという状態になって
しまうので単純にはいきません。
というわけでscriptを修正しなければ… -> xjump
----
Masato Taruishi <taruis-m@xxxxxxxxxxxxx> | University of Electro Comunications
<taru@debian.or.jp> | Department of Computer Science
<taruisma@xxxxxxxxxxxxx> | Junior
http://www.sunicom.co.jp/~taruisma/ | Shiroi Town Chiba Pref, JAPAN