/[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.5 Revision 1.6
1#!/usr/bin/python -O 1#!/usr/bin/python -O
2 2
3__revision__ = '$Revision: 1.5 $' 3__revision__ = '$Revision: 1.6 $'
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
149def is_masked(tree, ebuild): 149def is_masked(tree, ebuild):
150 """Return true if packages is masked in tree""" 150 """Return true if packages is masked in tree"""
151 return (not tree.visible(['%(category)s/%(name)s-%(version)s' % ebuild])) 151 return (not tree.visible(['%(category)s/%(name)s-%(version)s' % ebuild]))
152 152
153def main(): 153def main():
154 """Main program entry point"""
155 # We need to "fake" as repoman so portage will ignore local system
156 # settings
157 os.environ['PORTAGE_CALLER'] = 'repoman'
158
154 ebuilds = find_ebuilds() 159 ebuilds = find_ebuilds()
155 db = db_connect() 160 db = db_connect()
156 161
157 sys.path = ["/usr/lib/portage/pym"]+sys.path 162 sys.path = ["/usr/lib/portage/pym"]+sys.path
158 import portage 163 import portage

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20