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 / +13 lines)
Lines 2186-2195 class config(object): Link Here
2186
						myflags = []
2186
						myflags = []
2187
						continue
2187
						continue
2188
2188
2189
					if mykey == "FEATURES":
2190
						if x.startswith(("+", "-")):
2191
							val = x[1:]
2192
						else:
2193
							val = x
2194
2195
						if val not in portage.const.SUPPORTED_FEATURES:
2196
							writemsg(colorize("BAD",
2197
								_("FEATURES variable contains an unknown value: %s") % x) \
2198
								+ "\n", noiselevel=-1)
2199
							continue
2200
2189
					if x[0]=="+":
2201
					if x[0]=="+":
2190
						# Not legal. People assume too much. Complain.
2202
						# Not legal. People assume too much. Complain.
2191
						writemsg(colorize("BAD",
2203
						writemsg(colorize("BAD",
2192
							_("USE flags should not start with a '+': %s") % x) \
2204
							_("%s values should not start with a '+': %s") % (mykey,x)) \
2193
							+ "\n", noiselevel=-1)
2205
							+ "\n", noiselevel=-1)
2194
						x=x[1:]
2206
						x=x[1:]
2195
						if not x:
2207
						if not x:
2196
- 

Return to bug 326561