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

Collapse All | Expand All

(-)a/pym/portage/const.py (+13 lines)
Lines 82-87 EBUILD_PHASES = ("pretend", "setup", "unpack", "prepare", "configure" Link Here
82
                           "compile", "test", "install",
82
                           "compile", "test", "install",
83
                           "package", "preinst", "postinst","prerm", "postrm",
83
                           "package", "preinst", "postinst","prerm", "postrm",
84
                           "nofetch", "config", "info", "other")
84
                           "nofetch", "config", "info", "other")
85
SUPPORTED_FEATURES       = ("assume-digests", "buildpkg", "buildsyspkg", "ccache",
86
                           "collision-protect", "digest", "distcc", "distlocks",
87
                           "fakeroot", "fail-clean", "fixpackages", "getbinpkg",
88
                           "installsources", "keeptemp", "keepwork", "lmirror",
89
                           "metadata-transfer", "mirror", "multilib-strict", "news",
90
                           "noauto", "noclean", "nodoc", "noinfo", "noman", "nostrip"
91
                           "notitles", "parallel-fetch", "parse-eapi-ebuild-head",
92
                           "parse-eapi-glep-55", "preserve-libs", "protect-owned",
93
                           "python-trace", "sandbox", "sesandbox", "severe", "sfperms",
94
                           "sign", "skiprocheck", "split-elog", "split-log", "splitdebug",
95
                           "strict", "stricter", "suidctl", "test", "test-fail-continue",
96
                           "unmerge-logs", "unmerge-orphans", "userfetch", "userpriv",
97
                           "usersandbox", "usersync", "webrsync-gpg")
85
98
86
EAPI                     = 3
99
EAPI                     = 3
87
100
(-)a/pym/portage/package/ebuild/config.py (-2 / +8 lines)
Lines 2189-2195 class config(object): Link Here
2189
					if x[0]=="+":
2189
					if x[0]=="+":
2190
						# Not legal. People assume too much. Complain.
2190
						# Not legal. People assume too much. Complain.
2191
						writemsg(colorize("BAD",
2191
						writemsg(colorize("BAD",
2192
							_("USE flags should not start with a '+': %s") % x) \
2192
							_("%s values should not start with a '+': %s") % (mykey,x)) \
2193
							+ "\n", noiselevel=-1)
2193
							+ "\n", noiselevel=-1)
2194
						x=x[1:]
2194
						x=x[1:]
2195
						if not x:
2195
						if not x:
Lines 2201-2206 class config(object): Link Here
2201
							del myflags[myflags.index(x[1:])]
2201
							del myflags[myflags.index(x[1:])]
2202
						continue
2202
						continue
2203
2203
2204
					if mykey == "FEATURES":
2205
						if x.lstrip("+-") not in portage.const.SUPPORTED_FEATURES:
2206
							writemsg(colorize("BAD",
2207
								_("FEATURES variable contains an unknown value: %s") % x) \
2208
								+ "\n", noiselevel=-1)
2209
							continue
2210
2204
					# We got here, so add it now.
2211
					# We got here, so add it now.
2205
					if x not in myflags:
2212
					if x not in myflags:
2206
						myflags.append(x)
2213
						myflags.append(x)
2207
- 

Return to bug 326561