diff options
author | Brian Harring <ferringb@gentoo.org> | 2005-07-22 21:34:55 +0000 |
---|---|---|
committer | Brian Harring <ferringb@gentoo.org> | 2005-07-22 21:34:55 +0000 |
commit | abc0afe7c00033f0dfcd7e93b34e1aee533f5932 (patch) | |
tree | f5143869ffd62de1b2ff15504a9a18991a7c58d8 | |
parent | typo. (diff) | |
download | portage-cvs-abc0afe7c00033f0dfcd7e93b34e1aee533f5932.tar.gz portage-cvs-abc0afe7c00033f0dfcd7e93b34e1aee533f5932.tar.bz2 portage-cvs-abc0afe7c00033f0dfcd7e93b34e1aee533f5932.zip |
update...
-rw-r--r-- | rewrite-misc/developing | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/rewrite-misc/developing b/rewrite-misc/developing index 7e3204e..0d01754 100644 --- a/rewrite-misc/developing +++ b/rewrite-misc/developing @@ -10,3 +10,29 @@ CONF_DEFAULTS is the meta configuration definition, conf_default_types these settings all default to PORTAGE_BASE_PATH ; if you define it in portage_custom_path, the settings above will be based off of it. if no portage_custom_path, then it defaults to "/home/bharring/new/" which probably isn't what you want. + +So, how to set this sucker up? +copy ../portage somewhere, copy ../bin somewhere , copy this directory somewhere. +add a portage_custom_path.py to either /usr/lib/portage/pym/ , or /usr/lib/python-*/site-pkgs/ with paths defined to proper locations. +from there, you'll need to mangle a config (in this directory). If you have the usual defaults for a gentoo system, you won't have +to modify it aside from cflags tweaking, etc. + +so... after you've done this, try this- load up the python interpretter, and try this. + +>>> import portage.config +>>> conf=portage.config.load_config() +>>> tree=conf.repo["rsync repo"] +>>> pkg=tree["dev-util/diffball-0.6.5"] +>>> print pkg.depends +>=dev-libs/openssl-0.9.6j >=sys-libs/zlib-1.1.4 >=app-arch/bzip2-1.0.2 + + +If you've change your tree name (my tree name is "rsync repo"), you'll have to change what you try above. +if load_config() bails, then you have your paths wrong. if you see an error msg upon the initial import stating you're going to get +/home/bharring/new/ , you've defined portage_custom_path.py incorrectly, or it can't be read/found in a python directory; or, you've +defined the vars wrong, look at portage/const.py and grok what's going on. + +If it fails in the pkg instantiation, either your tree is incomplete (no tree at defined path in config), or that version of diffball +no longer exists. +Anything else, track down ferringb in #gentoo-portage on freenode, or email ferringb (at) gentoo.org , with the traceback, and I'll get +ya going. |