From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QYb4W-0000Fh-3W for garchives@archives.gentoo.org; Mon, 20 Jun 2011 09:47:08 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 178C41C03E; Mon, 20 Jun 2011 09:46:52 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id D8C3D1C03E for ; Mon, 20 Jun 2011 09:46:51 +0000 (UTC) Received: by gxk9 with SMTP id 9so833312gxk.40 for ; Mon, 20 Jun 2011 02:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:to:subject:from:x-face:date:mime-version :content-type:content-transfer-encoding:message-id; bh=oi3vazgawA8+FrsiW9JxJ59viZ9ICc91o4fshXswUlg=; b=k5Lv3EqcFcrQAZpvlCICFfukSDHX7GxVutEZcilbU5jz+oz73bbuKKjkGXZwMpg89B XYUoC4C93mRCXPAHbz5eejqB4Y5uIvlSMJuUM9QaKyRiclyw5qnQgZBL69g3BySX0/qx KbW0rsTSaLKY0QbyFJb13xjCoXpriNzHjTIH4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:subject:from:x-face:date:mime-version:content-type :content-transfer-encoding:message-id; b=TPOW3GXMV7xjSw8z/P/OhRS5HuRY+u3eRid8u7IxtACzSenEOCx8LZitGQWihotBue HR3qV3d69+H1vLkpAh7IY+oX2e6Du/qlq7L1Tmu3HmG87MH9Txjj5tF2iFOvR1kgMl8G NQhkKsxaDlKesLfP6ep15MXwSO+5i3y8VQ5gI= Received: by 10.236.76.194 with SMTP id b42mr7303987yhe.446.1308563211268; Mon, 20 Jun 2011 02:46:51 -0700 (PDT) Received: from naboo.localnet (147.218-201-80.adsl-dyn.isp.belgacom.be [80.201.218.147]) by mx.google.com with ESMTPS id w70sm3409735yhl.45.2011.06.20.02.46.48 (version=SSLv3 cipher=OTHER); Mon, 20 Jun 2011 02:46:49 -0700 (PDT) To: gentoo-soc@lists.gentoo.org Subject: [gentoo-soc] Rework Porthole to use the new public portage API -- Weekly report #4 From: Detlev Casanova X-Face: 4Mf^tnii7k\_EnR5aobBm6Di[DZ9@AX1wJ"okBdX-UoJ>:SRn]c6DDU"qUIwfs98vF> =?iso-8859-15?q?Tnf=0A=09SacR=7B?=(0Du"N%_.#X]"TXx)A'gKB1i7SK$CTLuy{h})c=g:'w3 Date: Mon, 20 Jun 2011 11:46:42 +0200 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1886096.0o6X4sgbuf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201106201146.47660.detlev.casanova@gmail.com> X-Archives-Salt: X-Archives-Hash: 6ccab7d1785aad8238a0db7b4ef7b11a --nextPart1886096.0o6X4sgbuf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello everyone ! This week, I almost finished working on the portage_2_2 backend's access=20 functions. Thos functions are used to get information on packages and on the environme= nt=20 from the plugin (in this case, Portage 2.2). There is an exception for get_property() which currently loads up all=20 properties for all packages and returns the one asked for. The next step for this backend is to implement actions : install, uninstall= =20 and update a package. The implementation of those actions in the portage API being not ready yet,= =20 I've also started working on the pkgcore plugin. Here, I have some troubles as to some functionalities are not present in=20 pkgcore. Or at least, not accessible. To name a few, versions comparison, h= ard=20 masking reason, package size. And I certainly haven't got into other ones. = So=20 the question is : do I use portage API's functions to do this or do I=20 reimplement those ? Another possiblity could be to have functionalities not implemented in a=20 backend and make porthole aware of it. Messages like "The Pkgcore backend d= oes=20 not support this feature" would be shown instead of the masking reason. Of= =20 course, functions like version comparison must be implemented. The API being a lot different from portage's, I found some functions that=20 could be simplifyed or even removed, because they where doing something=20 similar. As the project is reworking porthole (and not just interface qith a new=20 backend system), there will be rework to remove and improve some functions= =20 too. Particularly, the best() methode which compares a list of versions (wi= th=20 no package name). Pkgcore allows me to compare versions with package name. = I=20 don't see the point in keeping the function that way. This week, I'll spend some time on studying for my last exam (Friday) and=20 continue working on the pkgcore module. Detlev. --nextPart1886096.0o6X4sgbuf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJN/xcHAAoJEFBRww2kasG3LgUP/R0Bd7ijSv5ewr1r13LjdWPZ vnwkv8KT7v47Xv/SIQzzDsUXjwhLF2LRTZpAnnmVM6kk5wvZ6RfzkbuVP7eX2MSh 0lRJb5f5IxQo38M4Rbgm/jZ0vrRmCxnh2xy5E4dcFCryfSusUAlVOElX6Q9qyF/w xaXeIFmaTKH5/Rg9HO8yeSZvGcajtArcQk4OnEAVb91j5io5JnWt5YC/+e9g1rVL Q1cI5Y41E97CGe7I/d6fgF06m5kzs9Lf3sPSr1kX4rymrx4vkvr/pX6J8Pk5qob0 HWdiDMb4qJtLNxU0kvPxa0KBMwAz3LMafMl4qsJ2RRwoWWAlj9KHsy7aUZIVGeeh F8l7bIoTYUxxIFC3XhpgLCjsPe9xSXGiRx/Lrrp722HtJaMPrm4YJ5r5xEaPRYmD Fvz/CWEJHn013PbaZ6RXMfISrNDmcaX+rsIAyCHmZiAYK8ED2Lhw4IM/6/h0f6sI VuMZrpNmBD9gDe7iopHWZQla8LIG5Q05vH4ucZA395I1bK/dL8ILnOKxVWnhpZg4 MUGmu6Y/vgId+Wd42BckjBe3ZCdaJG7oJAzKhrh5QUOQoa56fUoFlO2Sw2JNaQad lUlazYFTgJOGmXubRNYKO+H+na8bST07jEkoKBZQqZ+MVR3NMWAkXmkseiXflhYE +h/e/YJyilHKK1zw2uzM =KXeq -----END PGP SIGNATURE----- --nextPart1886096.0o6X4sgbuf--