From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 7 Dec 2009 09:37:19 +0300 From: Alexey Tourbin To: ALT Linux Team development discussions Message-ID: <20091207063718.GA9694@altlinux.org> Mail-Followup-To: ALT Linux Team development discussions References: <4B189E0F.8060100@mmedia2.kemsu.ru> <20091204053246.GA11788@altlinux.org> <200912041956.28727.ledest@gmail.com> <20091204181311.GA28101@wo.int.altlinux.org> <20091205065443.GG11788@altlinux.org> <4B1C918B.9040908@mmedia2.kemsu.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <4B1C918B.9040908@mmedia2.kemsu.ru> Subject: Re: [devel] genbasedir & unique package list X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 06:42:35 -0000 Archived-At: List-Archive: List-Post: --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 07, 2009 at 12:24:27PM +0700, REAL wrote: > Alexey Tourbin =D0=C9=DB=C5=D4: > >=F4=C1=CD =C5=DD=A3 =C5=D3=D4=D8 /usr/bin/rpmdups =C9 rpmrdups, =DE=C5= =CD=20 > >=CF=D4=CC=C9=DE=C1=C0=D4=D3=D1 =CE=C5 =D0=CF=CD=CE=C0. >=20 > =E5=D3=CC=C9 =C2=D9 =C5=DD=A3 =C8=CF=D4=D1 =C2=D9 =CF=D0=C9=D3=C1=CE=C9= =C5 =CB=C1=CB=CF=C5-=D4=CF=20 > =C2=D9=CC=CF... =EF=CE=CF =C4=C1=D6=C5 --help =CE=C5 =D0=CF=CE=C9=CD=C1= =C5=D4. $ rpm -qi rpm-utils + rpmdups,rpmrdups - generates list of duplicated packages; [at@altair ~]$ rpmpeek /ALT/5.0/files/SRPMS/incominger-code-0.0.1-alt1.src.= rpm zsh root@altair .private/at/rpmpeek.iq7SlCB9 # tar xf incominger-0.0.1.tar.bz2 root@altair .private/at/rpmpeek.iq7SlCB9 # grep -C1 -r rpmrdups incominger-= 0.0.1/ incominger-0.0.1/helper/dups-for n in `ls -1 |grep ".src.rpm\$" |cut -c1 |L= C_COLLATE=3DC sort -u`; do incominger-0.0.1/helper/dups: rpmrdups "$n"*.src.rpm | cut -d\ -f2- | t= r \ \\n | xargs -r $TEST rm $verbose -f -- incominger-0.0.1/helper/dups-done -- incominger-0.0.1/bin/gaffer- [ -n "$list" ] &&=20 incominger-0.0.1/bin/gaffer: rpmrdups "$f" $list | cut -d\ -f2- | fgrep= -qs "$fn" && incominger-0.0.1/bin/gaffer- $TEST rm -f -- "$f" && -- incominger-0.0.1/bin/check-for n in `ls -1 "$src/" |grep ".src.rpm\$" |cut = -c1 |LC_COLLATE=3DC sort -u`; do incominger-0.0.1/bin/check: rpmrdups "$n"*.src.rpm | cut -d\ -f2- | tr = \ \\n |=20 incominger-0.0.1/bin/check- while read p; do -- incominger-0.0.1/bin/align- if [ "$n" -gt 1 ]; then incominger-0.0.1/bin/align: srpm=3D"$(printf %s\\n "$list" | xargs -r r= pmrdups |cut -d\ -f1)" incominger-0.0.1/bin/align- elif [ "$n" -eq 1 ]; then root@altair .private/at/rpmpeek.iq7SlCB9 #=20 > >=EC=D5=DE=DB=C5 =CE=C5 =C4=C5=CC=C1=D4=D8 =D3=C1=CD=CF=C4=C5=CC=D8=CE=D9= =C8=20 > >=D2=C5=D0=CF=DA=C9=D4=CF=D2=C9=C5=D7, =D0=CF=D4=CF=CD=D5 =DE=D4=CF =DC= =D4=CF, =C8=CD, =CF=DE=C5=CE=D8 > >=D3=CC=CF=D6=CE=CF (=C9 =D3=CB=CF=D2=C5=C5 =D7=D3=C5=C7=CF =CB=C1=CB=C1= =D1-=CE=C9=C2=D5=C4=D8=20 > >=C4=D2=D1=CE=D8 =D0=CF=CC=D5=DE=C9=D4=D3=D1). =EE=CF =CB=CF=CE=C5=DE=CE= =CF =D3=C5=D2=C4=C3=D5 > >=CE=C5 =D0=D2=C9=CB=C1=D6=C5=DB=D8. >=20 > =E1 =C4=C5=CC=CF =CE=C5 =D7 =D3=C5=D2=C4=C3=C5, =C1 =D7 =D4=CF=CD, =DE=D4= =CF =C5=D3=D4=D8=20 > =D3=C9=D4=D5=C1=C3=C9=C9, =CB=CF=C7=C4=C1 =C9=CE=CF=C7=CF =D7=D9=C8=CF=C4= =C1 =CE=C5=D4. >=20 > PS. =EE=D5 =C9 =C4=D2=D1=CE=C9 =CB=C1=CB-=D4=CF =CE=C5 =C4=C5=CC=C1=C5=CD= ;) =E7=C1=C4=CF=D3=D4=D8 =DC=D4=CF =D7=C1=DB=C1 =D2=D9=C2=C1 =DA=C1=CC=C9=D7= =CE=C1=D1. :) --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkscop4ACgkQfBKgtDjnu0ZW4ACgi9YtZ+ycIb5rL+luUmkHYVn0 jEMAoKE0dEuPCJ8AA9WfZnOveVSmRVvJ =elW2 -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--