Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 192341 | Differences between
and this patch

Collapse All | Expand All

(-)bin/emerge (+38 lines)
Lines 48-53 Link Here
48
import portage_util
48
import portage_util
49
import portage_locks
49
import portage_locks
50
import portage_exception
50
import portage_exception
51
import portage_data
51
from portage_data import secpass
52
from portage_data import secpass
52
from portage_util import normalize_path as normpath
53
from portage_util import normalize_path as normpath
53
from portage_util import writemsg
54
from portage_util import writemsg
Lines 6051-6056 Link Here
6051
			print >> sys.stderr, bad("\a!!! Is the symlink correct? " + \
6052
			print >> sys.stderr, bad("\a!!! Is the symlink correct? " + \
6052
				"Is your portage tree complete?\n")
6053
				"Is your portage tree complete?\n")
6053
			sys.exit(9)
6054
			sys.exit(9)
6055
		if myroot == "/" and \
6056
			portage_data.ostype == "FreeBSD":
6057
			ignore_missing = "ignore-missing-freebsd-module"
6058
			msg = None
6059
			die = False
6060
			if portage.bsd_chflags is not None and \
6061
				ignore_missing in mysettings.features:
6062
				msg = \
6063
				"Do NOT forget to remove \"%s\" " % ignore_missing + \
6064
				"from FEATURES as soon as " + \
6065
				"the freebsd python module has been properly " + \
6066
				"installed."
6067
			elif portage.bsd_chflags is None and \
6068
				ignore_missing not in mysettings.features:
6069
				die = True
6070
				msg = \
6071
				"An error occurred while attempting to import the " + \
6072
				"freebsd python module. This usually means that " + \
6073
				"python has just been upgraded and the py-freebsd " + \
6074
				"package has not yet been rebuilt by python-updater. " + \
6075
				"The freebsd python module is required for proper " + \
6076
				"operation. Please install or rebuild py-freebsd as " + \
6077
				"soon as possible. In order to bypass this error, " + \
6078
				"add \"%s\" to FEATURES. " % ignore_missing + \
6079
				"Do NOT forget to remove it from FEATURES as soon as " + \
6080
				"the freebsd python module has been properly " + \
6081
				"installed."
6082
			if msg:
6083
				width = 72 # leave room for the " * " prefix
6084
				from textwrap import wrap
6085
				for line in wrap(msg, width):
6086
					sys.stderr.write(bad(" * "))
6087
					sys.stderr.write(line)
6088
					sys.stderr.write("\n")
6089
				sys.stderr.flush()
6090
			if die:
6091
				sys.exit(9)
6054
		del myroot, mysettings
6092
		del myroot, mysettings
6055
6093
6056
def load_emerge_config(trees=None):
6094
def load_emerge_config(trees=None):

Return to bug 192341