summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-04-25 10:55:31 +0000
committerZac Medico <zmedico@gentoo.org>2006-04-25 10:55:31 +0000
commita54e775609d9ca35ba9181d0576b92e6ec5edbc5 (patch)
treea8e22c066b0ae561ef51203bdaa93e75e0e24c02 /bin
parent73d256ab01f04bd33131f2d10f0a46758e99391e (diff)
downloadportage-a54e775609d9ca35ba9181d0576b92e6ec5edbc5.tar.gz
portage-a54e775609d9ca35ba9181d0576b92e6ec5edbc5.tar.bz2
portage-a54e775609d9ca35ba9181d0576b92e6ec5edbc5.zip
Remove all dependence on the portage.features global variable.
svn path=/main/trunk/; revision=3233
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge20
-rwxr-xr-xbin/repoman8
2 files changed, 14 insertions, 14 deletions
diff --git a/bin/emerge b/bin/emerge
index 5f7e047bb..7a73fede6 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -166,8 +166,8 @@ if portage.settings.has_key("PORTAGE_NICENESS"):
portage.portdb.freeze()
# Kill noauto as it will break merges otherwise.
-while 'noauto' in portage.features:
- del portage.features[portage.features.index('noauto')]
+while 'noauto' in portage.settings.features:
+ portage.settings.features.remove('noauto')
#number of ebuilds merged
merged=0
@@ -332,7 +332,7 @@ if ("--quiet" in myopts):
# Always create packages if FEATURES=buildpkg
# Imply --buildpkg if --buildpkgonly
-if ("buildpkg" in portage.features) or ("--buildpkgonly" in myopts):
+if ("buildpkg" in portage.settings.features) or ("--buildpkgonly" in myopts):
if "--buildpkg" not in myopts:
myopts.append("--buildpkg")
@@ -350,7 +350,7 @@ if ("--searchdesc" in myopts):
myaction = "search"
# Always try and fetch binary packages if FEATURES=getbinpkg
-if ("getbinpkg" in portage.features):
+if ("getbinpkg" in portage.settings.features):
myopts.append("--getbinpkg")
if "--skipfirst" in myopts and "--resume" not in myopts:
@@ -403,7 +403,7 @@ if ("--debug" in myopts):
portage.settings.backup_changes("PORTAGE_DEBUG")
portage.debug=1
portage.settings.lock()
- if "python-trace" in portage.features:
+ if "python-trace" in portage.settings.features:
import portage_debug
portage_debug.set_trace(True)
@@ -434,7 +434,7 @@ if portage.settings["EMERGE_WARNING_DELAY"]:
EMERGE_WARNING_DELAY = string.atoi("0"+portage.settings["EMERGE_WARNING_DELAY"])
def emergelog(mystr,short_msg=None):
- if "notitles" not in portage.features:
+ if "notitles" not in portage.settings.features:
if short_msg:
xtermTitle(short_msg)
else:
@@ -465,7 +465,7 @@ def emergeexit():
"""This gets out final log message in before we quit."""
if "--pretend" not in myopts:
emergelog(" *** terminating.")
- if "notitles" not in portage.features:
+ if "notitles" not in portage.settings.features:
xtermTitleReset()
portage.atexit_register(emergeexit)
@@ -2094,7 +2094,7 @@ class depgraph:
os.execv(mynewargv[0], mynewargv)
if ("--pretend" not in myopts) and ("--fetchonly" not in myopts) and ("--fetch-all-uri" not in myopts):
- if "noclean" not in portage.features:
+ if "noclean" not in portage.settings.features:
short_msg = "emerge: (%s of %s) %s Clean Post" % \
(mergecount, len(mymergelist), x[pkgindex])
emergelog(" === (%s of %s) Post-Build Cleaning (%s::%s)" % \
@@ -3041,7 +3041,7 @@ elif "info"==myaction:
output=commands.getstatusoutput("distcc --version")
if not output[0]:
print str(string.split(output[1],"\n",1)[0]),
- if "distcc" in portage.features:
+ if "distcc" in portage.settings.features:
print "[enabled]"
else:
print "[disabled]"
@@ -3049,7 +3049,7 @@ elif "info"==myaction:
output=commands.getstatusoutput("ccache -V")
if not output[0]:
print str(string.split(output[1],"\n",1)[0]),
- if "ccache" in portage.features:
+ if "ccache" in portage.settings.features:
print "[enabled]"
else:
print "[disabled]"
diff --git a/bin/repoman b/bin/repoman
index 129e05720..5c3b13193 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -383,7 +383,7 @@ isCvs=False
myreporoot=None
if os.path.isdir("CVS"):
repoman_settings["PORTDIR_OVERLAY"]=""
- if "cvs" not in portage.features:
+ if "cvs" not in repoman_settings.features:
print
print
print red('!!! You do not have ')+bold('FEATURES="cvs" ')+red("enabled...")
@@ -859,7 +859,7 @@ for x in scanlist:
else:
stats["digest.partial"] += 1
fails["digest.partial"].append(y+"::"+myf)
- elif "assume-digests" not in portage.features:
+ elif "assume-digests" not in repoman_settings.features:
if os.path.exists(myff):
if not portage_checksum.verify_all(myff, mydigests[myf]):
stats["digest.fail"] += 1
@@ -1632,7 +1632,7 @@ else:
sys.exit(1)
# Force an unsigned commit when more than one Manifest needs to be signed.
- if repolevel < 3 and "sign" in portage.features:
+ if repolevel < 3 and "sign" in repoman_settings.features:
if "--pretend" in myoptions:
print "(/usr/bin/cvs -q commit -F "+commitmessagefile+")"
else:
@@ -1648,7 +1648,7 @@ else:
need_commit = True
signed = False
- if "sign" in portage.features:
+ if "sign" in repoman_settings.features:
signed = True
try:
if repolevel==3: # In a package dir