values can be disabled.
# Default user options
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned
- sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
+ sandbox sfperms strict unknown-features-warn unmerge-logs
+ unmerge-orphans userfetch"
# Ignore file collisions in /lib/modules since files inside this directory
# are never unmerged, and therefore collisions must be ignored in order for
protected by \fICONFIG_PROTECT\fR, unmerge it even if the modification time or
checksum differs from the file that was originally installed.
.TP
+.B unknown\-features\-warn
+Warn if FEATURES contains one or more unknown values.
+.TP
.B userfetch
When portage is run as root, drop privileges to portage:portage during the
fetching of package sources.
"python-trace", "sandbox", "sesandbox", "severe", "sfperms",
"sign", "skiprocheck", "split-elog", "split-log", "splitdebug",
"strict", "stricter", "suidctl", "test", "test-fail-continue",
+ "unknown-features-warn",
"unmerge-logs", "unmerge-orphans", "userfetch", "userpriv",
"usersandbox", "usersync", "webrsync-gpg"])
writemsg(_("!!! FEATURES=fakeroot is enabled, but the "
"fakeroot binary is not installed.\n"), noiselevel=-1)
- unsupported_features = []
- for x in self.features:
- if x not in SUPPORTED_FEATURES:
- unsupported_features.append(x)
-
- if unsupported_features:
- writemsg(colorize("BAD",
- _("FEATURES variable contains an unknown value(s): %s") % \
- ", ".join(unsupported_features)) \
- + "\n", noiselevel=-1)
+ if 'unknown-features-warn' in self.features:
+ unknown_features = []
+ for x in self.features:
+ if x not in SUPPORTED_FEATURES:
+ unknown_features.append(x)
+
+ if unknown_features:
+ writemsg(colorize("BAD",
+ _("FEATURES variable contains an unknown value(s): %s") % \
+ ", ".join(unknown_features)) \
+ + "\n", noiselevel=-1)
def loadVirtuals(self,root):
"""Not currently used by portage."""