From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 31 Aug 2006 03:45:50 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20060830234550.GA16902@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <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> <20060830224851.GI11420@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20060830224851.GI11420@localhost.localdomain> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E 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 23:45:51 -0000 Archived-At: List-Archive: List-Post: --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 31, 2006 at 02:48:51AM +0400, Alexey Tourbin wrote: [...] > =F7=CF=D4 =D3=CB=D2=C9=D0=D4, =CB=CF=D4=CF=D2=D9=CA =C9=D3=D0=CF=CC=D8=DA= =D5=C5=D4 =D4=CF=D0=CF=CC=CF=C7=C9=DE=C5=D3=CB=D5=C0 =D3=CF=D2=D4=C9=D2=CF= =D7=CB=D5 + =D7=D9=DE=C5=D2=CB=C9=D7=C1=CE=C9=C5 > =CB=C1=CB =D7 =D2=C5=DB=C5=D4=C5 =FC=D2=C1=D4=CF=D3=C6=C5=CE=C1. =E2=CF=C0=D3=D8, =DE=D4=CF =C4=CC=D1 =DE=C9=D4=C1=C0=DD=C5=CA =D0=D5=C2=CC= =C9=CB=C9 =CE=D5=D6=CE=D9 =CB=CF=CD=CD=C5=CE=D4=C1=D2=C9=C9. > $ cat ./optimize_package_list > #!/bin/sh -ef > . 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 =FA=C1=DE=C5=CD =D4=C1=CB =D3=CC=CF=D6=CE=CF? =F0=CF=CE=D1=D4=CE=CF =DE=D4= =CF =C9=D4=C5=D2=C1=D4=CF=D2 (REQUIRENAME/PROVIDENAME) =C4=CF=CC=D6=C5=CE =C2=D9=D4=D8 =D0=C5=D2=D7=D9=CD, =CE=CF =DA=C1=DE=C5=CD =D0=C5=D2=C5=D3=D4= =C1=D7=CC=D1=D4=D8? sort -u -k1,1 -k2,2 -o qR qR sort -u -k1,1 -k2,2 -o qP qP > #head -v qR qP > join -j 2 -o '1.1 2.1' qR qP |sort -u >p2p =D3=CF=CF=D4=D7=C5=D4=D3=D4=D7=C5=CE=CE=CF join -j 1 -o '1.2 2.2' qR qP |sort -u >p2p =C9 =D4.=C4. =F4=C1=CB=C9=CD =CF=C2=D2=C1=DA=CF=CD, p2p =D3=CF=D3=D4=CF=C9=D4 =C9=DA =D0= =C1=D2 =C9=CD=A3=CE =D0=C1=CB=C5=D4=CF=D7 =D7=C9=C4=C1 (=DA=C1=D7=C9=D3=D1=DD=C9=CA,=D5=C4=CF=D7=CC=C5=D4=D7=CF=D2=D1=C0=DD=C9=CA) > tsort p2p >tsorted || [ -s tsorted ] =ED=CF=D6=C5=D4 =CC=C9 =C2=D9=D4=D8, =DE=D4=CF=C2=D9 tsort =D2=C1=DA=CF=D2= =D7=C1=CC =C3=C9=CB=CC=D9 =CE=C5 =D3=C1=CD=D9=CD =CF=D0=D4=C9=CD=C1=CC=D8= =CE=D9=CD =CF=C2=D2=C1=DA=CF=CD? =ED=CF=D6=C5=D4, =CE=CF =DC=D4=CF =CE=C5 =D7=C1=D6=CE=CF =D7=D7=C9=C4=D5 = =D0=CF=D3=CC=C5=C4=D5=C0=DD=C5=C7=CF. > #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 =EE=C5 =CE=D2=C1=D7=C9=D4=D3=D1 =CD=CE=C5 =DC=D4=C9 eval'=D9... =F1 =C2=D9 =D7=D3=A3 =D6=C5 =CE=C5 =D3=D4=C1=CC =CE=C1=DA=D9=D7=C1=D4=D8 = =DA=C1=D7=C9=D3=D1=DD=C9=CA =D0=C1=CB=C5=D4 master, =C1 =D5=C4=CF=D7=CC=C5= =D4=D7=CF=D2=D1=C0=DD=C9=CA =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=D8 slave. =F3=CB=CF=D2=C5=C5 =CE=C1=CF=C2= =CF=D2=CF=D4. :) =E9=D4=C1=CB, =D7 extrareq =D0=CF=D0=C1=C4=C1=C0=D4 (=D7=D3=C5?) =C9=CD=C5= =CE=C1 =D0=C1=CB=C5=D4=CF=D7, =CB=CF=D4=CF=D2=D9=C5 =D5=C4=CF=D7=CC=C5=D4= =D7=CF=D2=D1=C0=D4 =C8=CF=D4=D1 =C2=D9 =CF=C4=C9=CE =DA=C1=D7=C9=D3=D1=DD=C9=CA. > sort -o extrareq -u extrareq > awk '{print$1}' qR |sort -u >req req - =DC=D4=CF =C9=CD=C5=CE=C1 =D7=D3=C5=C8 =D0=C1=CB=C5=D4=CF=D7, =D5 =CB= =CF=D4=CF=D2=D9=C8 =C5=D3=D4=D8 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9. =F0=CF=D3=CB=CF=CC=D8=CB=D5 =CC=C0=C2=CF=CA =D0=C1=CB=C5=D4 =C9=CD=C5=C5=D4= =CB=C1=CB=C9=C5-=CE=C9=C2=D5=C4=D8 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9, =C8= =CF=D4=D1 =C2=D9 =CE=C1 rpmlib(...), =DC=D4=CF =D3=D0=C9=D3=CF=CB =D3=CF=D7=D0=C1=C4=C1=C5=D4 =D3 = =C9=D3=C8=CF=C4=CE=D9=CD =D3=D0=C9=D3=CB=CF=CD. =E9 =D7=D3=A3 =D6=C5 =D1 =C2=D9 =D3=C4=C5=CC=C1=CC =DC=D4=CF=D4 =D6=C5 =D3= =C1=CD=D9=CA =D3=D0=C9=D3=CF=CB =CE=C1 =CF=D3=CE=CF=D7=C5 qP, =D7=CF=D3=D0= =CF=CC=D8=DA=CF=D7=C1=D7=DB=C9=D3=D8 =C4=D2=D5=C7=C9=CD =D3=D7=CF=CA=D3=D4=D7=CF=CD =D0=C1=CB=C5=D4=CF=D7: =D7= =D3=D1=CB=C9=CA =D0=C1=CB=C5=D4 =D0=D2=C5=C4=CF=D3=D4=C1=D7=CC=D1=C5=D4 =CF= =C4=CE=CF=C9=CD=A3=CE=CE=D9=CA provides. =E9=CC=C9 =C5=DD=A3 =D0=C5=D2=C5=CE=CF=D3=C9=CD=C5=C5: rpmquery --qf '%{NAM= E}\n' -- "$@" >names > #head -v req extrareq > comm -23 req extrareq |xargs -r echo > $ =EE=C1=CB=CF=CE=C5=C3, =C9=DA =D3=D0=C9=D3=CB=C1 =C9=CD=A3=CE =D7=D3=C5=C8 = =D0=C1=CB=C5=D4=CF=D7 =D5=C4=C1=CC=D1=C0=D4=D3=D1 =C9=CD=C5=CE=C1 =D4=C5=C8= , =CF=D4 =CB=CF=D4=CF=D2=D9=C8 =DA=C1=D7=C9=D3=C9=D4 =C8=CF=D4=D1 =C2=D9 =CF=C4=C9=CE. > =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. =F7=D9=C7=CC=D1=C4=C9=D4 =D0=D2=C1=D7=C9=CC=D8=CE=CF. --=20 ldv --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE9iMufKvmrJ41Nh4RAgCkAKCM5YLfciNwgMNBQ1IsFQbNaDCyFACeMmal swc38QCauYXDPzQnb7U4xY4= =GVNT -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--