from portage import cpv_getkey
from portage.dep import isjustname
+if sys.hexversion >= 0x3000000:
+ long = int
+
def parse_args(args):
usage = "egencache [options] --update [atom] ..."
parser = optparse.OptionParser(usage=usage)
import portage
from portage import os
+if sys.hexversion >= 0x3000000:
+ long = int
+
class BinpkgFetcher(SpawnProcess):
__slots__ = ("pkg", "pretend",
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class BlockerCache(portage.cache.mappings.MutableMapping):
"""This caches blockers of installed packages so that dep_check does not
# Distributed under the terms of the GNU General Public License v2
# $Id$
+import sys
+
import portage
from portage import os
from portage import digraph
from _emerge.FakeVartree import FakeVartree
from _emerge.show_invalid_depstring_notice import show_invalid_depstring_notice
+if sys.hexversion >= 0x3000000:
+ long = int
+
class BlockerDB(object):
def __init__(self, root_config):
# Distributed under the terms of the GNU General Public License v2
# $Id$
+import sys
+
import portage
from portage import os
from _emerge.Package import Package
from _emerge.PackageVirtualDbapi import PackageVirtualDbapi
+if sys.hexversion >= 0x3000000:
+ long = int
+
class FakeVartree(portage.vartree):
"""This is implements an in-memory copy of a vartree instance that provides
all the interfaces required for use by the depgraph. The vardb is locked
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class Package(Task):
from _emerge.UseFlagDisplay import UseFlagDisplay
from _emerge.userquery import userquery
+if sys.hexversion >= 0x3000000:
+ long = int
+
def action_build(settings, trees, mtimedb,
myopts, myaction, myfiles, spinner):
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class _frozen_depgraph_config(object):
from _emerge.is_valid_package_atom import is_valid_package_atom
from _emerge.stdout_spinner import stdout_spinner
+if sys.hexversion >= 0x3000000:
+ long = int
+
options=[
"--ask", "--alphabetical",
"--buildpkg", "--buildpkgonly",
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
# Assume utf_8 fs encoding everywhere except in merge code, where the
# user's locale is respected.
from portage.cache import cache_errors
import errno
import stat
+import sys
from portage import os
from portage import _encodings
from portage import _unicode_encode
+if sys.hexversion >= 0x3000000:
+ long = int
+
class database(fs_template.FsBased):
autocommits = True
import codecs
import errno
import stat
+import sys
+
+if sys.hexversion >= 0x3000000:
+ long = int
# store the current key order *here*.
class database(fs_template.FsBased):
# License: GPL2
# $Id$
+import sys
from portage.cache import template
from portage import os
)
del lazyimport
+if sys.hexversion >= 0x3000000:
+ long = int
+
class FsBased(template.database):
"""template wrapping fs needed options, and providing _ensure_access as a way to
attempt to ensure files have the specified owners/perms"""
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
# this is the old cache format, flat_list. count maintained here.
magic_line_count = 22
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class database(object):
# this is for metadata/cache transfer.
import codecs
import re
+import sys
import time
from portage import os
from portage import _encodings
from portage import _unicode_encode
+if sys.hexversion >= 0x3000000:
+ long = int
+
# [D]/Name/Version/Date/Flags/Tags
def pathdata(entries, path):
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class bindbapi(fakedbapi):
_known_keys = frozenset(list(fakedbapi._known_keys) + \
import codecs
import logging
import stat
+import sys
import warnings
+if sys.hexversion >= 0x3000000:
+ long = int
+
def _src_uri_validate(cpv, eapi, src_uri):
"""
Take a SRC_URI structure as returned by paren_reduce or use_reduce
if sys.hexversion >= 0x3000000:
basestring = str
+ long = int
class PreservedLibsRegistry(object):
""" This class handles the tracking of preserved library objects """
__all__ = ["cache"]
+import sys
import warnings
from portage.util import normalize_path
import errno
from portage.exception import PermissionDenied
from portage import os
+if sys.hexversion >= 0x3000000:
+ long = int
+
class cache(object):
"""
Maintains the cache information about eclasses used in ebuild.
except ImportError as e:
sys.stderr.write(colorize("BAD","!!! CANNOT IMPORT HTTP.CLIENT: ")+str(e)+"\n")
+if sys.hexversion >= 0x3000000:
+ long = int
+
def make_metadata_dict(data):
myid,myglob = data
from portage.exception import DirectoryNotFound, InvalidAtom, PortageException
from portage.localization import _
+if sys.hexversion >= 0x3000000:
+ long = int
+
ignored_dbentries = ("CONTENTS", "environment.bz2")
def update_dbentry(update_cmd, mycontent):