portage-2.2
==================================
+* Portage now requires >=python-2.4, but doesn't need pycrypto anymore if
+ >=python-2.5 is installed and openssl supports the rmd160 hash.
* The python namespace for portage has been sanitized, all portage related code
is now contained within the portage namespace. External script should be updated
accordingly, though links exist for backward compability.
from portage.util import normalize_path as normpath
from portage.util import writemsg
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
from itertools import chain, izip
from UserDict import DictMixin
def merge(self, mylist, favorites, mtimedb):
from portage.elog import elog_process
+ from portage.elog.filtering import filter_mergephases
failed_fetches = []
fetchonly = "--fetchonly" in self.myopts or \
"--fetch-all-uri" in self.myopts
del pkgsettings["PORTAGE_BINPKG_TMPFILE"]
if retval != os.EX_OK or \
"--buildpkgonly" in self.myopts:
- elog_process(pkg_key, pkgsettings)
+ elog_process(pkg_key, pkgsettings, phasefilter=filter_mergephases)
if retval != os.EX_OK:
return retval
bintree = self.trees[myroot]["bintree"]
from time import sleep
from random import shuffle
import UserDict
- if getattr(__builtins__, "set", None) is None:
- from sets import Set as set
from itertools import chain, izip
except ImportError, e:
sys.stderr.write("\n\n")
# $Header: $
import time
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
from portage.cache import template
from portage.cache.cache_errors import CacheCorruption
from portage.cache.flat_hash import database as db_rw
# License: GPL2
# $Id$
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
from itertools import chain
from portage.cache import cache_errors
# $Header: $
import copy
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
from portage.cache import template
class database(template.database):
# Distributed under the terms of the GNU General Public License v2
# $Id$
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
-
import os, sys, pwd, grp
from portage.util import writemsg
from portage.output import green,red
from portage.dbapi import dbapi
from portage.dep import dep_getslot, use_reduce, paren_reduce, isvalidatom, \
isjustname, dep_getkey, match_from_list
-from portage.elog import elog_process
from portage.exception import InvalidPackageName, InvalidAtom, \
FileNotFound, PermissionDenied, UnsupportedAPIException
from portage.locks import lockdir, unlockdir
doebuild_environment, doebuild, env_update, \
abssymlink, movefile, _movefile, bsd_chflags
+from portage.elog import elog_process
from portage.elog.messages import ewarn
+from portage.elog.filtering import filter_mergephases, filter_unmergephases
import os, sys, stat, errno, commands, copy, time
from itertools import izip
try:
if myebuildpath:
# process logs created during pre/postrm
- elog_process(self.mycpv, self.settings)
+ elog_process(self.mycpv, self.settings, phasefilter=filter_unmergephases)
if retval == os.EX_OK:
doebuild(myebuildpath, "cleanrm", self.myroot,
self.settings, tree="vartree",
retval = self.treewalk(mergeroot, myroot, inforoot, myebuild,
cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
# Process ebuild logfiles
- elog_process(self.mycpv, self.settings)
+ elog_process(self.mycpv, self.settings, phasefilter=filter_mergephases)
if retval == os.EX_OK and "noclean" not in self.settings.features:
if myebuild is None:
myebuild = os.path.join(inforoot, self.pkg + ".ebuild")
# Distributed under the terms of the GNU General Public License v2
# $Id$
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
-
from portage.output import red, yellow, green
import htmllib,HTMLParser,formatter,sys,os,portage.xpak,time,tempfile,base64,urllib2
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-import errno, os, sets
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
+import errno, os
import portage.versions, portage.const
from portage.checksum import *
self.hashes.append("size")
if manifest1_compat:
self.hashes.extend(portage.const.MANIFEST1_HASH_FUNCTIONS)
- self.hashes = sets.Set(self.hashes)
+ self.hashes = set(self.hashes)
for t in portage.const.MANIFEST2_IDENTIFIERS:
self.fhashdict[t] = {}
self.compat = manifest1_compat
except ImportError:
import pickle as cPickle
-if not hasattr(__builtins__, "set"):
- from sets import Set as set
-
noiselimit = 0
def writemsg(mystr,noiselevel=0,fd=None):