From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Date: Fri, 3 Apr 2009 02:58:45 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20090402225845.GM27603@altlinux.org> References: <200904022018.29573.asy@altlinux.ru> <200904021726.00475.ledest@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m+utxuhC6KVTvgNz" Content-Disposition: inline In-Reply-To: <200904021726.00475.ledest@gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: [devel] =?koi8-r?b?cnBtNSDJIEFMVExpbnV4?= 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: Thu, 02 Apr 2009 22:59:02 -0000 Archived-At: List-Archive: List-Post: --m+utxuhC6KVTvgNz Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Led [090402 19:30]: > =F4=CF=CC=D8=CB=CF =D4=CF=CC=CB=D5 =CF=D4 =CE=C5=C7=CF =CD=C1=CC=CF, =C5= =D3=CC=C9 =CF=CE =D5 =CE=C1=D3 =CF=D0=C3=C9=CF=CE=C1=CC=C5=CE, =C1 =CE=C5 = =CF=C2=D1=DA=C1=D4=C5=CC=C5=CE =C4=CC=D1=20 > =C4=C5=CA=D3=D4=D7=C9=D4=C5=CC=D8=CE=CF noarch-=DE=C1=D3=D4=C5=CA. =F4.= =CF. =E4=C1=D6=C5 =C2=C1=C7=D5 =CE=C1 =DC=D4=CF=D4 =D3=DE=A3=D4 =CE=C1 =D0= =C1=CB=C5=D4 =D7=C5=DB=C1=D4=D8=20 > =C2=C5=D3=D0=CF=CC=C5=DA=CE=CF, =D0=CF=D4=CF=CD=D5 =CB=C1=CB =CD=C5=CA=CE= =D4=C5=CA=CE=C5=D2 =D0=CF=DB=CC=A3=D4 =D0=CF=C4=C1=CC=D8=DB=C5 =D3 =C6=CF= =D2=CD=D5=CC=C9=D2=CF=D7=CB=CF=CA "=E1 =CD=CE=C5=20 > =DE=D4=CF-=D4=CF =CD=C5=C8=C1=CE=C9=DA=CD noarch-=D3=D5=C2=D0=C1=CB=C5=D4= =CF=D7 =CC=C9=DE=CE=CF =CE=C5 =CE=D2=C1=D7=C9=D4=D3=D1". =E7-=CE, Led, =DC=D4=CF =D5 =F7=C1=D3 =CF=DE=C5=D2=C5=C4=CE=CF=CA =D3=CC=D5= =DE=C1=CA =D4=C1=CB =CE=C1=DA=D9=D7=C1=C5=CD=CF=C7=CF =D7=D2=C1=CE=D8=D1? =F0=CF=D4=D2=D5=C4=C9=D4=C5=D3=D8, =D0=CF=D6=C1=CC=D5=CA=D3=D4=C1, =D0=D2= =C9=D7=C5=D3=D4=C9 =CB=CF=C4, =CB=CF=D4=CF=D2=D9=CA =C6=D5=CE=CB=C3=C9=CF= =CE=C1=CC=D8=CE=CF =CF=D4=CC=C9=DE=C1=CC=D3=D1 =C2=D9 =CF=D4 =DC=D4=CF=C7=CF: 700 const char *platform =3D rpmExpand("%{_target_platform}", NULL); 701 const char *arch =3D rpmExpand("%{_target_cpu}", NULL); 702 const char *os =3D rpmExpand("%{_target_os}", NULL); 703 704 for (pkg =3D spec->packages; pkg !=3D NULL; pkg =3D pkg->next) { =2E.. 712 he->tag =3D RPMTAG_ARCH; 713 he->t =3D RPM_STRING_TYPE; 714 he->p.str =3D (pkg->noarch ? "noarch" : arch); 715 he->c =3D 1; 716 xx =3D headerPut(pkg->header, he, 0); 717 718 he->tag =3D RPMTAG_PLATFORM; 719 he->t =3D RPM_STRING_TYPE; 720 he->p.str =3D platform; 721 he->c =3D 1; 722 xx =3D headerPut(pkg->header, he, 0); =E9=CC=C9 =DC=D4=CF=C7=CF: 853 const char *platform =3D rpmExpand("%{_target_platform}", NULL); 854 const char *arch =3D rpmExpand("%{_target_cpu}", NULL); 855 const char *os =3D rpmExpand("%{_target_os}", NULL); 856 #endif 857 858 for (pkg =3D spec->packages; pkg !=3D NULL; pkg =3D pkg->next) { =2E.. 869 if (!headerIsEntry(pkg->header, RPMTAG_ARCH)) 870 headerAddEntry(pkg->header, RPMTAG_ARCH, RPM_STRING_TYPE, a= rch, 1); 871 else 872 assert(pkg !=3D spec->packages); /* noarch subpackage */ 873 if (!headerIsEntry(pkg->header, RPMTAG_RHNPLATFORM)) 874 (void) headerAddEntry(pkg->header, RPMTAG_RHNPLATFORM, 875 RPM_STRING_TYPE, arch, 1); 876 (void) headerAddEntry(pkg->header, RPMTAG_PLATFORM, 877 RPM_STRING_TYPE, platform, 1); =F0=C5=D2=D7=D9=CA =C6=D2=C1=C7=CD=C5=CE=D4 =DC=D4=CF HEAD rpm5.org, =D7=D4= =CF=D2=CF=CA - =D4=C1=CB =CE=C1=DA=D9=D7=C1=C5=CD=D9=CA "ALT-rpm", =CB=CF=D4=CF=D2=D9=CA =F7=D9 =D5=D3=C9=CC=C5=CE=CE=CF =D2=D5=C7= =C1=C5=D4=C5. --=20 Regards, Sir Raorn. --m+utxuhC6KVTvgNz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFJ1UMgVqT7+fkT8woRAvqEAJ9i7z4VadGo3EbwIQw460Lv1TS6YgCgx9st Lz+BgNXDWEpceiqPKxTtZdk= =OuoZ -----END PGP SIGNATURE----- --m+utxuhC6KVTvgNz--