Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-guis
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-guis@g.o
From: Brian <dol-sen@...>
Subject: new gettext like command retrieval
Date: Wed, 14 May 2008 06:32:38 -0700
I've put together a little test config file and extremely basic

It works quite well from my live python trials.

brian@big_squirt ~/porthole/trunk/porthole/backends/test $ python
Python 2.5.2 (r252:60911, Apr 25 2008, 19:29:41) 
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from commands import get_cmd as g
>>> from commands import get_sections, get_items, get_options
>>> get_sections()
['sync', 'install_opts', 'update', 'install', 'uninstall']
>>> get_options('install')
['install_pv', 'install_p', 'install']
>>> get_items('install')
[('install_pv', 'emerge -pv'), ('install_p', 'emerge -p'), ('install',
>>> g('install','install_p')
'emerge -p'
>>> g('install','install_pv')
'emerge -pv'

Of course it can be refined a lot more, but seems to work quite well.  I
will need to change the way porthole builds it commands to be more
compatible with pkgcore.  But I think this method will work better
overall.  I have had requests for the ability to specify custom scripts
for several of the currently hard coded 'emerge' commands.  That part of
it can be taken care of by checking for a users ~/.porthole/portage.cfg
or ~/.porthole/pkgcore.cfg depending on the backend selected and using
it instead of the pre-configured one in the backend subdirectory.
Brian <dol-sen@...>
Attachment: (Text Data)
install = emerge
install_p = emerge -p
install_pv = emerge -pv

uninstall_cmd = emerge --unmerge

update_basic = emerge --update
update_deep = emerge --update --deep
update_pv = emerge -pv
update_pvd = emerge -pvD

sync_default = emerge --sync
sync_web = emerge webrsync

pretend = --pretend
deep = --Deep
verbose = --verbose
newuse = --newuse
Lists: gentoo-guis: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Catapult is dead (or at least comatose)
Next by thread:
Previous by date:
Re: Catapult is dead (or at least comatose)
Next by date:

Updated Feb 12, 2011

Summary: Archive of the gentoo-guis mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.