From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 31 Aug 2006 02:48:51 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060830224851.GI11420@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> <20060830162849.GD11420@localhost.localdomain> <20060830164352.GA32596@basalt.office.altlinux.org> <20060830201207.GE10840@procyon.home> <20060830210106.GH11420@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CD/aTaZybdUisKIc" Content-Disposition: inline In-Reply-To: <20060830210106.GH11420@localhost.localdomain> 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 22:48:48 -0000 Archived-At: List-Archive: List-Post: --CD/aTaZybdUisKIc Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 31, 2006 at 01:01:06AM +0400, Alexey Tourbin wrote: > > =E4=C1=CC=C5=C5, =C9=CD=C5=D1 =C7=D2=C1=C6 =DA=C1=D7=C9=D3=C9=CD=CF=D3= =D4=C5=CA =CD=C5=D6=C4=D5 =D0=C1=CB=C5=D4=C1=CD=C9, =CE=C5=CF=C2=C8=CF=C4= =C9=CD=CF =CB=C1=CB=C9=CD-=D4=CF > > =CF=C2=D2=C1=DA=CF=CD =CF=D0=D2=C5=C4=C5=CC=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C9=C5 =CB=C1=CB =D7 =D2=C5=DB=C5=D4=C5 =FC=D2=C1=D4=CF=D3=C6=C5=CE=C1. $ 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 '1.1 2.1' qR qP |sort -u >p2p tsort p2p >tsorted || [ -s tsorted ] #head -v p2p tsorted set -- `cat tsorted` for i in `seq 1 $(($#-1))`; do eval master=3D"\$$i" for j in `seq $((i+1)) $#`; do eval slave=3D"\$$j" if grep -qs -Fx "$master $slave" p2p; then #echo master=3D$master slave=3D$slave >&2 echo "$slave" fi done done >extrareq sort -o extrareq -u extrareq awk '{print$1}' qR |sort -u >req #head -v req extrareq comm -23 req extrareq |xargs -r echo $ =F5 =CD=C5=CE=D1 =D0=CF=CB=C1 =CE=C5=D4 =D5=D7=C5=D2=C5=CE=CE=CF=D3=D4=C9, = =DE=D4=CF =CF=CE =C4=CF =CB=CF=CE=C3=C1 =D0=D2=C1=D7=C9=CC=D8=CE=CF =D2=C1= =C2=CF=D4=C1=C5=D4, =CF=C4=CE=C1=CB=CF "=CF=D3=CE=CF=D7=CE=D9=C5 =D0=D2=CF=C2=CC=C5=CD=D9" =D7 = =CE=A3=CD =CB=C1=CB =C2=D5=C4=D4=CF =CE=C5 =D0=D2=CF=D1=D7=CC=D1=C0=D4=D3= =D1. $ ./optimize_package_list glibc-core sh sh $ ./optimize_package_list perl-base =20 perl-base $ ./optimize_package_list perl-DateTime-TimeZone perl-DateTime =20 tsort: p2p: input contains a loop: =20 tsort: perl-DateTime tsort: perl-DateTime-TimeZone perl-DateTime $ =EF=DE=C5=CE=D8 =D0=D2=CF=DB=D5 =D5=CB=C1=DA=C1=D4=D8 =CD=CE=C5 =D3=C9=D4= =D5=C1=C3=C9=C0, =D7 =CB=CF=D4=CF=D2=CF=CA =D3=CB=D2=C9=D0=D4 =CC=C1=D6=C1= =C5=D4=D3=D1. --CD/aTaZybdUisKIc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE9hXTfBKgtDjnu0YRAk8qAKDhEXV3NaGqUbFzpDjuQaePfJK3OgCg3Yov bGGOxmO9a/ionXxf1s4q1G4= =1+uM -----END PGP SIGNATURE----- --CD/aTaZybdUisKIc--