From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 31 Aug 2006 00:29:06 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060830202906.GF11420@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <20060830145857.GA11420@localhost.localdomain> <20060830150142.GA29125@basalt.office.altlinux.org> <20060830151053.GB11420@localhost.localdomain> <20060830152946.GC30667@basalt.office.altlinux.org> <20060830160036.GC11420@localhost.localdomain> <20060830161050.GA31919@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2FkSFaIQeDFoAt0B" Content-Disposition: inline In-Reply-To: <20060830161050.GA31919@basalt.office.altlinux.org> Subject: Re: [devel] =?koi8-r?b?z9DUyc3J2sHDydEg08LP0s/eztnIINrB18nTyc3P09TF?= =?koi8-r?b?yg==?= X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 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, 30 Aug 2006 20:29:19 -0000 Archived-At: List-Archive: List-Post: --2FkSFaIQeDFoAt0B Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 30, 2006 at 08:10:50PM +0400, Dmitry V. Levin wrote: > > (=E1=CC=C7=CF=D2=C9=D4=CD =CF=D0=D4=C9=CD=C9=DA=C1=C3=C9=C9 BuildRequir= es =CF=C2=D3=D5=D6=C4=C1=CC=D3=D1 =D7=DE=C5=D2=C1 =D7 =DE=C1=D3=D4=CE=CF=CA > > =D0=C5=D2=C5=D0=C9=D3=CB=C5. =F0=D2=C1=D7=C4=C1, =D3=D0=D2=CF=D3=CF=CE= =D8=D1 =D1 =D0=CF=D4=C5=D2=D1=CC =CB =CE=C5=CD=D5 =C9=CE=D4=C5=D2=C5=D3. = =E5=D3=CC=C9 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CC=D1=C5= =D4=D3=D1 =D4=CF, =DE=D4=CF =CF=CE =D0=CF=DE=C5=CD=D5 =D4=CF =D4=D2=C5=C2=D5=C5=D4 =D3=C1=CD = =D3=C5=C2=D1 -- Requires: perl-base. =F0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =D3=CF=C5=C4=C9=CE=C5=CE=C9=C5 perl-base -> perl-base -> perl-base =C9 =D0= =C1=CB=C5=D4 =D3=CF=D7=C5=D2=DB=C5=CE=CE=CF =C1=D7=D4=CF=CD=C1=D4=C9=DE=C5=D3=CB=C9 =D5=C4=C1=CC=D1=C5=D4=D3=D1 =C9=DA = =D3=D0=C9=D3=CB=C1. =F7=CF=D4 =D3=C1=CD =D3=CB=D2=C9=D0=D4, =D3 =CB=CF=D4=CF=D2=D9=CD =CD=CF=D6= =CE=CF =D0=CF=C9=C7=D2=C1=D4=D8=D3=D1. $ cat ./optimize_package_list #!/bin/sh -ef =2E tmpdir.sh cd $TMPDIR rpm -q --qf '[%{REQUIRENAME}\t%{NAME}\n]' -- "$@" >qR rpm -q --qf '[%{PROVIDENAME}\t%{NAME}\n]' -- "$@" >qP awk '{print$2,$1}' qR |sort -u -k2,2 -k1,1 -o qR awk '{print$2,$1}' qP |sort -u -k2,2 -k1,1 -o qP #head -v qR qP join -j 2 -o 2.1 qR qP |sort -u >extrareq awk '{print$1}' qR |sort -u >req #head -v req extrareq comm -23 req extrareq |xargs -r echo $ ./optimize_package_list perl-base $ (tmpdir.sh =C5=D3=D4=D8 =D7 =D0=C1=CB=C5=D4=C5 qa-robot) 2) =E4=C1=CC=C5=C5, =D2=C1=D3=D3=CD=CF=D4=D2=C9=CD =D0=C1=CB=C5=D4=D9 perl-= DateTime =C9 perl-DateTime-TimeZone. =FC=D4=C9 =D0=C1=CB=C5=D4=D9 =DA=C1=D7=C9=D3=D1=D4 =C4=D2=D5=C7 =CF=D4 =C4= =D2=D5=C7=C1, =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1 =D3=CC=C5=C4=D5=C0=DD=C5=C5 = =D3=CF=C5=C4=C9=CE=C5=CE=C9=C5: perl-DateTime -> perl(DateTime/TimeZone.pm) -> perl-DateTime-TimeZone perl-DateTime-TimeZone -> perl(DateTime.pm) -> perl-DateTime =EF=D0=D1=D4=D8 =D0=CF=CC=D5=DE=C1=C5=D4=D3=D1, =DE=D4=CF =D7=D3=C5 =D4=D2= =C5=C2=D5=C5=CD=D9=C5 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =CF=D0=D1=D4=D8 =D6= =C5 =D0=D2=C5=C4=CF=D3=D4=C1=D7=CC=D1=C0=D4=D3=D1 =D3=C1=CD=C9=CD=C9 =DC=D4=C9=CD=C9 =D0=C1=CB=C5=D4=C1=CD=C9, =D0=CF=DC=D4= =CF=CD=D5 =D5=D6=C5 =D3=D2=C1=DA=D5 =C4=D7=C1 =D0=C1=CB=C5=D4, =CB=CF=D4=CF= =D2=D9=C5 =CF=C2=D2=C1=DA=D5=C0=D4 =C3=C9=CB=CC, =D3=CF=D7=C5=D2=DB=C5=CE=CE=CF =C1=D7=D4=CF=CD=C1=D4=C9=DE=C5= =D3=CB=C9 =C9=D3=CB=CC=C0=DE=C1=C0=D4=D3=D1 =C9=DA =D3=D0=C9=D3=CB=C1. $ ./optimize_package_list perl-DateTime perl-DateTime-TimeZone $ =F1=D3=CE=CF, =DE=D4=CF 1) =D1=D7=CC=D1=C5=D4=D3=D1 =DE=C1=D3=D4=CE=D9=CD = =D3=CC=D5=DE=C1=C5=CD 2). =FC=D4=CF =CD=CF=D6=CE=CF =D0=D2=C5=C4=D3=D4=C1= =D7=C9=D4=D8 =D3=C5=C2=C5 =CB=C1=CB =D0=D2=CF=D3=D4=D5=C0 =C9 =D3=CC=CF=D6=CE=D5=C0 =D2=C5=CB=D5=D2= =D3=C9=C0. =F0=D2=C9 =D0=D2=CF=D3=D4=CF=CA =D2=C5=CB=D5=D2=D3=C9=C9 =C6=D5= =CE=C3=C9=D1 f =D7=D9=DA=D9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 =CE=C1=DE=C1=CC=D8=CE=D9=CA =C9 =CB=CF= =CE=C5=DE=CE=D9=CA =DC=CC=C5=CD=C5=CE=D4=D9. =EE=C5 =D0=CF=CE=D4=D1=CE=CF =D0=D2=C1=D7=C4=C1, =DE=D4=CF =D0=CF=D4=CF=CD = =C4=C5=CC=C1=D4=D8 =D3 =CF=C2=CE=C1=D2=D5=D6=C5=CE=CE=D9=CD=C9 =D4=C1=CB=C9= =CD =CF=C2=D2=C1=DA=CF=CD =C3=C9=CB=CC=C1=CD=C9. --2FkSFaIQeDFoAt0B Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE9fUSfBKgtDjnu0YRAnGiAJ0eLy/c+gjOjd003ufTNQTKBgJZwgCgz9xI xOz4pEsE08fzmuk84rhg2LM= =IJc7 -----END PGP SIGNATURE----- --2FkSFaIQeDFoAt0B--