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

Collapse All | Expand All

(-)pym/portage/__init__.py~ (+30 lines)
Lines 4194-4208 Link Here
4194
			else:
4194
			else:
4195
				am_maintainer_mode = []
4195
				am_maintainer_mode = []
4196
				configure_opts_warn = []
4196
				configure_opts_warn = []
4197
				missing_inherit_env = []
4198
				missing_inherit_ebuild = []
4197
				configure_opts_warn_re = re.compile(
4199
				configure_opts_warn_re = re.compile(
4198
					r'^configure: WARNING: Unrecognized options: .*')
4200
					r'^configure: WARNING: Unrecognized options: .*')
4199
				am_maintainer_mode_re = re.compile(r'.*/missing --run .*')
4201
				am_maintainer_mode_re = re.compile(r'.*/missing --run .*')
4202
				missing_inherit_env_re = re.compile(
4203
					r'.*temp/environment: .* command not found .*')
4204
				missing_inherit_ebuild_re = re.compile(
4205
					r'.*ebuild: *. command not found .*')
4200
				try:
4206
				try:
4201
					for line in f:
4207
					for line in f:
4202
						if am_maintainer_mode_re.search(line) is not None:
4208
						if am_maintainer_mode_re.search(line) is not None:
4203
							am_maintainer_mode.append(line.rstrip("\n"))
4209
							am_maintainer_mode.append(line.rstrip("\n"))
4204
						if configure_opts_warn_re.match(line) is not None:
4210
						if configure_opts_warn_re.match(line) is not None:
4205
							configure_opts_warn.append(line.rstrip("\n"))
4211
							configure_opts_warn.append(line.rstrip("\n"))
4212
						if missing_inherit_env_re.match(line) is not None:
4213
							missing_inherit_env.append(line.rstrip("\n"))
4214
						if missing_inherit_ebuild_re.match(line) is not None:
4215
							missing_inherit_ebuild.append(line.rstrip("\n"))
4206
				finally:
4216
				finally:
4207
					f.close()
4217
					f.close()
4208
4218
Lines 4236-4241 Link Here
4236
					msg.append("")
4246
					msg.append("")
4237
					msg.extend("\t" + line for line in configure_opts_warn)
4247
					msg.extend("\t" + line for line in configure_opts_warn)
4238
					_eqawarn(msg)
4248
					_eqawarn(msg)
4249
				
4250
				if missing_inherit_env:
4251
					msg = ["QA Notice: Unrecognized command in ebuild:"]
4252
					msg.append("")
4253
					msg.extend("\t" + line for line in missing_inherit_env)
4254
					msg.append("")
4255
					msg.extend(wrap(
4256
						"Please file a bug at " + \
4257
						"https://bugs.gentoo.org",wrap_width))
4258
					_eqawarn(msg)
4259
4260
				if missing_inherit_ebuild:
4261
					msg = ["QA Notice: Unrecognized command in ebuild:"]
4262
					msg.append("")
4263
					msg.extend("\t" + line for line in missing_inherit_ebuild)
4264
					msg.append("")
4265
					msg.extend(wrap(
4266
						"Please file a bug at " + \
4267
						"https://bugs.gentoo.org",wrap_width))
4268
					_eqawarn(msg)
4239
4269
4240
		if mydo == "install":
4270
		if mydo == "install":
4241
			# User and group bits that match the "portage" user or group are
4271
			# User and group bits that match the "portage" user or group are

Return to bug 228935