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 1MQNZh-000325-7A for garchives@archives.gentoo.org; Mon, 13 Jul 2009 15:36:17 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 618F0E0230; Mon, 13 Jul 2009 15:36:15 +0000 (UTC) Received: from mail-bw0-f227.google.com (mail-bw0-f227.google.com [209.85.218.227]) by pigeon.gentoo.org (Postfix) with ESMTP id CE10EE0230; Mon, 13 Jul 2009 15:36:14 +0000 (UTC) Received: by bwz27 with SMTP id 27so449889bwz.34 for ; Mon, 13 Jul 2009 08:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=FVk6HHiQy+m08kWS8dKcL7firMFoCDD63C9VV29mbnY=; b=o06+ND5u4XuDzbOdpGmf/8GLV/1cj9BsnX1VpIzGX9/tFSLN2Gw2t76dZaQjCHyC1f feciE7UYg6mmmNv9Sst+comL4NFdYVF81DUu5nB0WIrWsn4SLZEusSC2YN6WSRt7mmOz YCd7PdvHPhMqcVVUAarHat84QmpXgJlH8jKno= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=sRH7j1ECT24RLEHJT/AZ/4G32zsx9ycMw5fX87IJJ01Yk4m3Jvg+9Eagc+D72ZX8xL E/mTk/t2R31qM071QM/vQs4R0tL5nR6awVDmADa/7dPWWw3LGFccdHu3HeDiT8dSsdaq 9AR2fbmUElLch0+CulsFeDPXzymspEblxQ5xk= Received: by 10.103.52.13 with SMTP id e13mr2773247muk.52.1247499374121; Mon, 13 Jul 2009 08:36:14 -0700 (PDT) Received: from ?192.168.127.16? (magdalene.ist.utl.pt [193.136.161.161]) by mx.google.com with ESMTPS id y37sm22263603mug.49.2009.07.13.08.36.12 (version=SSLv3 cipher=RC4-MD5); Mon, 13 Jul 2009 08:36:12 -0700 (PDT) Subject: [gentoo-dev] Re: Progress on Universal Select Tool From: =?ISO-8859-1?Q?S=E9rgio?= Almeida To: Gentoo SoC , Gentoo Dev , =?ISO-8859-1?Q?S=E9bastien?= Fabbro In-Reply-To: <1245163715.14589.515.camel@thedude> References: <1245163715.14589.515.camel@thedude> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-uWfGzk2y+tKc9pWJEN29" Date: Mon, 13 Jul 2009 16:36:10 +0100 Message-Id: <1247499370.5028.23.camel@thedude> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Archives-Salt: 277bc388-8780-4342-b0ca-75ac060c180d X-Archives-Hash: 62a9e9c12b587a8f66268b54037625cd --=-uWfGzk2y+tKc9pWJEN29 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Missed a weekly report, busy week. Will try to post 2 reports this week as I am also working twice as much time. Progress since last report: * Converted all modules into plain python. * uselect got even faster * symlinking dependencies (ex: ruby and ruby-gems) * several links per action (ex: bash-completion) New module example: # Python Module from umodule import * module =3D Module(name =3D "python", description =3D "Python Version Switcher", version =3D "0.1", author =3D"mephx.x@gmail.com") # We define th= e module bin =3D Action (name =3D 'bin', description =3D "Change Python's Version", type =3D "sym") # Define a Symlinking Action python =3D Link(alias =3D "python", target =3D "/usr/bin/python", prefix = =3D "/usr/bin/", regexp =3D "python([0-9]+\.[0-9]+$)")=20 python_config =3D Link(alias =3D "python-config", target =3D "/usr/bin/python-config", prefix =3D "/usr/bin/", regexp =3D "python([0-9]+\.[0-9]+)-config$") bin.add_link(python_config) # For inheritance bin.add_link(python) # Adding The Link to the action module.add_action(bin) #Adding the action to the module # End Only 1 module per file and modules are retrieved via the variable "module" on each module. I couldn't find out a better way of doing this but I'm sure there is one. Anyone? This seems a bit messy but will be much easier to create support for markup languages (I'm starting to love the idea of JSON). This is a very good progress but brought a problem. Managing symlinking dependencies (tree-like) became a huge headache. (Due to infinite dependency capabilities). Suggestions are welcome in this part. At this point I am creating a new way of managing several targets and it's dependencies automatically in an indexed way either for easy displaying and also for easy choosing. (No indexing is beeing done right now, just plain object count) I plan to start the profiling capabilities later this week. Cheers, S=C3=A9rgio --=20 S=C3=A9rgio Almeida - mephx.x@gmail.com mephx @ freenode --=-uWfGzk2y+tKc9pWJEN29 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpbVGQACgkQQXumuXcKj043jQCePQ9dKtR2SqzTX/nV8BcuF0UF VeIAn07edSILJ6rGakp0k316WDPMjii8 =bVLv -----END PGP SIGNATURE----- --=-uWfGzk2y+tKc9pWJEN29--