dogtail-devel [Bug 318225] program is unusable for Gentoo users



Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=318225
 dogtail | Framework | Ver: CVS HEAD

Brent Smith (smitten) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gnome nextreality net



------- Additional Comments From Brent Smith (smitten)  2005-10-07 17:27 -------
It seems that importing the portage module and using the following syntax
will get you the distribution specific version number for a package in gentoo.

smitten home /usr/lib/portage/pym $ python
Python 2.4.1 (#1, Jul 13 2005, 18:58:56)
[GCC 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append ('/usr/lib/portage/pym')
>>> sys.path
['', '/usr/lib/portage/pym', '/opt/gnome2/lib/python24.zip',
'/opt/gnome2/lib/python2.4', '/opt/gnome2/lib/python2.4/plat-linux2',
'/opt/gnome2/lib/python2.4/lib-tk', '/opt/gnome2/lib/python2.4/lib-dynload',
'/opt/gnome2/lib/python2.4/site-packages',
'/opt/gnome2/lib/python2.4/site-packages/dbus',
'/opt/gnome2/lib/python2.4/site-packages/gtk-2.0', '/usr/lib/portage/pym']
>>> import portage
>>> portage.db["/"]["vartree"].dbapi.match("mail-client/mozilla-thunderbird")
['mail-client/mozilla-thunderbird-1.0.6-r4']
>>>

------- You are receiving this mail because: -------
You are watching the assignee for the bug.
You are watching the QA contact.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]