From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] %pre in update package Date: Sun, 23 Nov 2008 03:06:18 +0300 Message-ID: <20081123000618.GE12206@wo.int.altlinux.org> (raw) In-Reply-To: <200811230204.34210.ledest@gmail.com> [-- Attachment #1: Type: text/plain, Size: 1452 bytes --] On Sun, Nov 23, 2008 at 02:04:34AM +0200, Led wrote: > On Sunday, 23 November 2008 01:57:01 Dmitry V. Levin wrote: > > On Sun, Nov 23, 2008 at 01:47:35AM +0200, Led wrote: > > > On Sunday, 23 November 2008 01:38:13 Dmitry V. Levin wrote: > > > > On Sun, Nov 23, 2008 at 01:34:18AM +0200, Led wrote: > > > > > On Sunday, 23 November 2008 01:23:40 Dmitry V. Levin wrote: [...] > > > > > > cd %_docdir/%bname-%version/lib 2>/dev/null && > > > > > > find -type l -delete ||: > > > > > > > > > > Зачем? find сам проверяет наличие каталога, в которые его > > > > > натравливают, если %_docdir/%bname-%version/lib не существует, find > > > > > ничего не делает. "2>/dev/null ||:" действительно стОит указать, > > > > > спасибо. > > > > > > > > Чтобы отличить штатную ситуацию (отсутствие каталога) от нештатной > > > > ситуации (find не смог искать и/или удалить запрошенное). > > > > > > И то, и другое - штатная ситуация. find (в данном случае) должен что-то > > > делать ТОЛЬКО если: > > > 1) каталог, в котором ему указали искать, существует > > > 2) в каталоге есть симлинки - тогда их нужно удалить, иначе rpm > > > "захлебнётся" > > > > Ещё раз: не надо "затыкать рот" find'у -- он не сможет сообщить об ошибке, > > которую вы НЕ ожидаете встретить. > > Например? Например, ошибка в find-выражении, ошибка в (изменяющейся) структуре файловой системы, ошибка в самом find. Да мало ли какие бывают ошибки. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-11-23 0:06 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-11-21 22:49 Led 2008-11-21 23:24 ` Led 2008-11-22 22:53 ` Dmitry V. Levin 2008-11-22 23:01 ` Led 2008-11-22 23:08 ` Dmitry V. Levin 2008-11-22 23:19 ` Led 2008-11-22 23:23 ` Dmitry V. Levin 2008-11-22 23:34 ` Led 2008-11-22 23:38 ` Dmitry V. Levin 2008-11-22 23:47 ` Led 2008-11-22 23:57 ` Dmitry V. Levin 2008-11-23 0:04 ` Led 2008-11-23 0:06 ` Dmitry V. Levin [this message] 2008-11-23 0:28 ` Led
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=20081123000618.GE12206@wo.int.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