From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [git update] packages/hasher: heads/master
Date: Thu, 9 Aug 2007 02:09:24 +0400
Message-ID: <20070808220924.GA5027@nomad.office.altlinux.org> (raw)
In-Reply-To: <20070807124126.15F491CB4044@ssh.git.local.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]
On Tue, Aug 07, 2007 at 04:41:26PM +0400, Alexey M. Tourbin wrote:
> Update of /people/at/packages/hasher.git
>
> Changes statistics since common ancestor `1.2.5-alt1-5-g26e3fbc' follows:
> hasher/hsh-initroot | 3 +-
> hasher/hsh-sh-cache-contents-functions | 87 +++++++++++++------------------
> 2 files changed, 39 insertions(+), 51 deletions(-)
>
> Changelog since common ancestor `1.2.5-alt1-5-g26e3fbc' follows:
> commit 4180e774c1919b5a31b0f6fa066c4dad733ca5c1
> Author: Alexey Tourbin <at@altlinux>
> Date: Tue Aug 7 16:08:07 2007 +0400
>
> cache-contents-functions: introduced contents_index_all.gz
>
> This commit is for preview only, description pending for update.
>
> Full diff since common ancestor `1.2.5-alt1-5-g26e3fbc' follows:
> diff --git a/hasher/hsh-initroot b/hasher/hsh-initroot
> index 3d681b7..901db8a 100755
> --- a/hasher/hsh-initroot
> +++ b/hasher/hsh-initroot
[...]
> -${contents_index_bin:+%_pkg_contents_index_bin /.host/contents_index_bin}
> +${contents_index_bin:+%_pkg_contents_index_bin /.host/${contents_index_bin##*/}}
> +${contents_index_all:+%_pkg_contents_index_all /.host/${contents_index_all##*/}}
Здесь и далее, я не понимаю, зачем нужно передавать rpmbuild'у оба
индексных файла; если передаётся полный индекс, то зачем ещё передавать
частичный?
[...]
> + set -x
Если код работает, то это надо убрать.
[...]
> + <"$contents" >>"$contents.bin" grep '^/bin/' || [ $? -eq 1 ]
> + <"$contents" >>"$contents.bin" grep '^/sbin/' || [ $? -eq 1 ]
> + <"$contents" >>"$contents.bin" grep '^/usr/bin/' || [ $? -eq 1 ]
> + <"$contents" >>"$contents.bin" grep '^/usr/sbin/' || [ $? -eq 1 ]
> + <"$contents" >>"$contents.bin" grep '^/usr/X11R6/bin/' || [ $? -eq 1 ]
> + <"$contents" >>"$contents.bin" grep '^/etc/' || [ $? -eq 1 ]
> +
> + cat <"$contents.bin" >"$contents_index_bin"
Этот новообразованный $contents.bin, похоже, никогда не зануляется.
[...]
> + gzip <"$contents" >"$contents_index_all"
А стоит ли его cжимать?
[...]
> + set +x
Если код работает, то это надо убрать.
[...]
> + Verbose 'Prepared contents index.'
> + chmod 644 "$contents_index_bin" "$contents_index_all"
В этом варианте имеет смысл поменять строчки местами.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2007-08-08 22:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 22:09 ` Dmitry V. Levin [this message]
2007-08-08 22:27 ` Alexey Tourbin
2007-08-08 22:52 ` Alexey Tourbin
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=20070808220924.GA5027@nomad.office.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.org \
/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