public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] repoman: remove check for addpredict
@ 2020-03-05 20:30 Mike Gilbert
  2020-03-05 20:59 ` Michał Górny
  2020-03-05 21:24 ` Zac Medico
  0 siblings, 2 replies; 4+ messages in thread
From: Mike Gilbert @ 2020-03-05 20:30 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Mike Gilbert

This function has not been deprecated, and developers generally have a
good reason for using it. A repoman warning for this is just noise.

No reason was given when this check was added in 2010, and it was requested
by a developer who has since retired.

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
---
 repoman/cnf/linechecks/linechecks.yaml                     | 1 -
 repoman/cnf/repository/repository.yaml                     | 1 -
 .../lib/repoman/modules/linechecks/workaround/__init__.py  | 6 ------
 .../repoman/modules/linechecks/workaround/workarounds.py   | 7 -------
 4 files changed, 15 deletions(-)

diff --git a/repoman/cnf/linechecks/linechecks.yaml b/repoman/cnf/linechecks/linechecks.yaml
index 410bcd9c5..2182b467a 100644
--- a/repoman/cnf/linechecks/linechecks.yaml
+++ b/repoman/cnf/linechecks/linechecks.yaml
@@ -28,7 +28,6 @@ errors:
     PRESERVE_OLD_LIB: 'Ebuild calls deprecated preserve_old_lib'
     BUILT_WITH_USE: 'built_with_use'
     NO_OFFSET_WITH_HELPERS: 'Helper function is used with D, ROOT, ED, EROOT or EPREFIX'
-    SANDBOX_ADDPREDICT: 'Ebuild calls addpredict'
     USEQ_ERROR: 'Ebuild calls deprecated useq function'
     HASQ_ERROR: 'Ebuild calls deprecated hasq function'
     URI_HTTPS: 'Ebuild uses http:// but should use https://'
diff --git a/repoman/cnf/repository/repository.yaml b/repoman/cnf/repository/repository.yaml
index 935260424..ad00d18c1 100644
--- a/repoman/cnf/repository/repository.yaml
+++ b/repoman/cnf/repository/repository.yaml
@@ -71,6 +71,5 @@ linechecks_modules:
     uselessdodoc
     whitespace
     blankline
-    addpredict
     noasneeded
 
diff --git a/repoman/lib/repoman/modules/linechecks/workaround/__init__.py b/repoman/lib/repoman/modules/linechecks/workaround/__init__.py
index 425085a5c..694695015 100644
--- a/repoman/lib/repoman/modules/linechecks/workaround/__init__.py
+++ b/repoman/lib/repoman/modules/linechecks/workaround/__init__.py
@@ -10,12 +10,6 @@ module_spec = {
 	'name': 'do',
 	'description': doc,
 	'provides':{
-		'addpredict-check': {
-			'name': "addpredict",
-			'sourcefile': "workarounds",
-			'class': "SandboxAddpredict",
-			'description': doc,
-		},
 		'noasneeded-check': {
 			'name': "noasneeded",
 			'sourcefile': "workarounds",
diff --git a/repoman/lib/repoman/modules/linechecks/workaround/workarounds.py b/repoman/lib/repoman/modules/linechecks/workaround/workarounds.py
index 37cb54314..768a47e8e 100644
--- a/repoman/lib/repoman/modules/linechecks/workaround/workarounds.py
+++ b/repoman/lib/repoman/modules/linechecks/workaround/workarounds.py
@@ -9,10 +9,3 @@ class NoAsNeeded(LineCheck):
 	repoman_check_name = 'upstream.workaround'
 	re = re.compile(r'.*\$\(no-as-needed\)')
 	error = 'NO_AS_NEEDED'
-
-
-class SandboxAddpredict(LineCheck):
-	"""Check for calls to the addpredict function."""
-	repoman_check_name = 'upstream.workaround'
-	re = re.compile(r'(^|\s)addpredict\b')
-	error = 'SANDBOX_ADDPREDICT'
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-05 21:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-05 20:30 [gentoo-portage-dev] [PATCH] repoman: remove check for addpredict Mike Gilbert
2020-03-05 20:59 ` Michał Górny
2020-03-05 21:04   ` Mike Gilbert
2020-03-05 21:24 ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox