From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Re: [POLICY] rebuild packges for master22
Date: Wed, 12 Nov 2003 13:35:57 +0300
Message-ID: <20031112103557.GB28095@basalt.office.altlinux.org> (raw)
In-Reply-To: <20031112100416.GB14737@kadath.office.spb.ramax.ru>
[-- Attachment #1: Type: text/plain, Size: 839 bytes --]
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
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-11-12 10:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-01 12:59 ` [devel] [POLICY][MACRO] Re: [sisyphus] " Michael Shigorin
2003-11-01 21:22 ` Dmitry V. Levin
2003-11-01 21:38 ` [devel] Re: [POLICY] " Michael Shigorin
2003-11-01 21:47 ` Dmitry V. Levin
2003-11-02 14:46 ` Michael Shigorin
2003-11-12 10:04 ` Igor Homyakov
2003-11-12 10:06 ` [devel] " Michael Shigorin
2003-11-12 10:21 ` Igor Homyakov
2003-11-12 10:35 ` Dmitry V. Levin [this message]
2003-11-12 13:12 ` [devel] Re: [POLICY] " Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031112103557.GB28095@basalt.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git