/[gentoo]/src/packages/ebuilddb.py
Gentoo

Diff of /src/packages/ebuilddb.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.8 Revision 1.8.2.1
1#!/usr/bin/python -O 1#!/usr/bin/python -O
2 2
3__revision__ = '$Revision: 1.8 $' 3__revision__ = '$Revision: 1.8.2.1 $'
4# $Source: /var/cvsroot/gentoo/src/packages/ebuilddb.py,v $ 4# $Source: /var/cvsroot/gentoo/src/packages/ebuilddb.py,v $
5 5
6import config 6import config
7import sys 7import sys
8import os 8import os
163 import portage 163 import portage
164 # ... and then wait like a f**king hour 164 # ... and then wait like a f**king hour
165 sys.path = sys.path[1:] 165 sys.path = sys.path[1:]
166 166
167 # We want to use the base profile, not any system-specific one 167 # We want to use the base profile, not any system-specific one
168 p_config = portage.config(config_profile_path = '/usr/portage/profiles/base') 168 p_config = portage.config(config_profile_path='/usr/portage/profiles/base',
169 local_config=False)
169 170
170 tree = portage.portdbapi('/usr/portage', p_config) 171 tree = portage.portdbapi('/usr/portage', p_config)
171 172
172 # are we updating the db or just rebuilding it? 173 # are we updating the db or just rebuilding it?
173 rebuild = len(argv) == 2 and argv[1] == 'rebuild' 174 rebuild = len(argv) == 2 and argv[1] == 'rebuild'

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.8.2.1

  ViewVC Help
Powered by ViewVC 1.1.20