From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 12 Nov 2003 13:35:57 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Subject: Re: [devel] Re: [POLICY] rebuild packges for master22 Message-ID: <20031112103557.GB28095@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <3FA15D94.6000803@progroup.ru> <20031031193302.GB7359@abr.tool.ru> <20031101125946.GF14774@osdn.org.ua> <20031101212253.GA11048@basalt.office.altlinux.org> <20031101213820.GD14774@osdn.org.ua> <20031101214710.GG11048@basalt.office.altlinux.org> <20031112100416.GB14737@kadath.office.spb.ramax.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y5rl02BVI9TCfPar" Content-Disposition: inline In-Reply-To: <20031112100416.GB14737@kadath.office.spb.ramax.ru> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2003 10:36:04 -0000 Archived-At: List-Archive: List-Post: --Y5rl02BVI9TCfPar Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Nov 12, 2003 at 01:04:16PM +0300, Igor Homyakov wrote: > * Dmitry V. Levin [031101 23:51]: > > On Sat, Nov 01, 2003 at 11:38:20PM +0200, Michael Shigorin wrote: > > > On Sun, Nov 02, 2003 at 12:22:53AM +0300, Dmitry V. Levin wrote: > > > > %ifdef add_findprov_lib_path > > > > %add_findprov_lib_path /некий/каталог > > > > %endif > > > > > > В этом случае -- да; с инитскриптами разве что закладываься на > > > версии пакетов. > > > Зачем? > > > if [ -x %_initdir/functions-compat ]; then > > new code > > else > > old code > > fi > > этот код я предназначен для spec ? > сомневаюсь, что так можно писать в init скрипте Ещё немного фантазии, и получится, например, так: %define old_code %([ -f %_initdir/functions-compat ] && echo 0 || echo 1) %if "%old_code" == "0" new code %else old code %fi -- ldv --Y5rl02BVI9TCfPar Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/sg0N9viEa8HiNCkRAuUpAJ9tlRbTXjkE+v52w70YOE4B6T5iyACggSbt ITpwahBserfmcJdm1QjI2j4= =4WYS -----END PGP SIGNATURE----- --Y5rl02BVI9TCfPar--