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

Collapse All | Expand All

(-)a/bin/repoman (+2 lines)
Lines 279-284 qahelp={ Link Here
279
	"file.name":"File/dir name must be composed of only the following chars: %s " % allowed_filename_chars,
279
	"file.name":"File/dir name must be composed of only the following chars: %s " % allowed_filename_chars,
280
	"file.UTF8":"File is not UTF8 compliant",
280
	"file.UTF8":"File is not UTF8 compliant",
281
	"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
281
	"inherit.autotools":"Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf",
282
	"inherit.deprecated":"Ebuild inherits a deprecated eclass",
282
	"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
283
	"java.eclassesnotused":"With virtual/jdk in DEPEND you must inherit a java eclass",
283
	"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
284
	"KEYWORDS.dropped":"Ebuilds that appear to have dropped KEYWORDS for some arch",
284
	"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
285
	"KEYWORDS.missing":"Ebuilds that have a missing or empty KEYWORDS variable",
Lines 387-392 qawarnings = set(( Link Here
387
"ebuild.patches",
388
"ebuild.patches",
388
"file.size",
389
"file.size",
389
"inherit.autotools",
390
"inherit.autotools",
391
"inherit.deprecated",
390
"java.eclassesnotused",
392
"java.eclassesnotused",
391
"metadata.warning",
393
"metadata.warning",
392
"virtual.versioned",
394
"virtual.versioned",
(-)a/man/repoman.1 (+3 lines)
Lines 294-299 Package lacks a files directory Link Here
294
.B inherit.autotools
294
.B inherit.autotools
295
Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf
295
Ebuild inherits autotools but does not call eautomake, eautoconf or eautoreconf
296
.TP
296
.TP
297
.B inherit.deprecated
298
Ebuild inherits a deprecated eclass
299
.TP
297
.B java.eclassesnotused
300
.B java.eclassesnotused
298
With virtual/jdk in DEPEND you must inherit a java eclass. Refer to
301
With virtual/jdk in DEPEND you must inherit a java eclass. Refer to
299
\fIhttp://www.gentoo.org/proj/en/java/java\-devel.xml\fR for more information.
302
\fIhttp://www.gentoo.org/proj/en/java/java\-devel.xml\fR for more information.
(-)a/pym/repoman/checks.py (-2 / +25 lines)
Lines 294-299 class EbuildQuotedA(LineCheck): Link Here
294
		if match:
294
		if match:
295
			return "Quoted \"${A}\" on line: %d"
295
			return "Quoted \"${A}\" on line: %d"
296
296
297
class InheritDeprecated(LineCheck):
298
	"""Check if ebuild inherits a deprecated eclass"""
299
300
	repoman_check_name = 'inherit.deprecated'
301
302
	# deprecated eclass : new eclass (0 if no new eclass)
303
	deprecated_classes = {
304
		"qt4": "qt4-r2"
305
		}
306
307
	def new(self, pkg):
308
		self.matched_eclasses = frozenset(self.deprecated_classes.keys()).intersection(pkg.inherited);
309
310
	def check(self, num, line):
311
		if not self.matched_eclasses:
312
			return
313
314
	def end(self):
315
		for i in self.matched_eclasses:
316
			if self.deprecated_classes[i] == 0:
317
				yield i + ": deprecated eclass"
318
			else:
319
				yield "uses deprecated eclass '"+i+"'. please migrate to '"+self.deprecated_classes[i]+"'"
320
297
class InheritAutotools(LineCheck):
321
class InheritAutotools(LineCheck):
298
	"""
322
	"""
299
	Make sure appropriate functions are called in
323
	Make sure appropriate functions are called in
Lines 492-498 _constant_checks = tuple((c() for c in ( Link Here
492
	EbuildAssignment, EbuildUselessDodoc,
516
	EbuildAssignment, EbuildUselessDodoc,
493
	EbuildUselessCdS, EbuildNestedDie,
517
	EbuildUselessCdS, EbuildNestedDie,
494
	EbuildPatches, EbuildQuotedA, EapiDefinition,
518
	EbuildPatches, EbuildQuotedA, EapiDefinition,
495
	IUseUndefined, InheritAutotools,
519
	IUseUndefined, InheritAutotools, InheritDeprecated,
496
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
520
	EMakeParallelDisabled, EMakeParallelDisabledViaMAKEOPTS, NoAsNeeded,
497
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
521
	DeprecatedBindnowFlags, SrcUnpackPatches, WantAutoDefaultValue,
498
	SrcCompileEconf, Eapi3DeprecatedFuncs,
522
	SrcCompileEconf, Eapi3DeprecatedFuncs,
499
- 

Return to bug 326747