[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: a4fa59ec3f38eb1696519f6c627e3bf7270b540b Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Fri Mar 30 00:43:45 2018 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=a4fa59ec repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: dd91714d7fc605aa9f29f8b8a5819246703f9110 Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Thu Mar 29 20:43:39 2018 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=dd91714d repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: d0cdfbcb3b576299f11597d3f8eb04a8b7d4285b Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Wed Dec 6 00:13:27 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=d0cdfbcb repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: 8d9362457bd7b14158dd7d877e08dd782a9a311f Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Tue Dec 5 18:24:49 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=8d936245 repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/, ...
commit: b7a081e73bbfd642246d85f575b2019752afb5b2 Author: Brian Dolbec gentoo org> AuthorDate: Wed Aug 16 23:24:24 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Sun Nov 26 17:32:20 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=b7a081e7 repoman: Initial adding file/module/API version repoman/pym/repoman/config.py| 7 +-- repoman/pym/repoman/main.py | 3 +++ repoman/pym/repoman/modules/linechecks/assignment/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/config.py | 2 +- repoman/pym/repoman/modules/linechecks/depend/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/deprecated/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/do/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/eapi/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/emake/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/gentoo_header/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/helpers/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/nested/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/patches/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/phases/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/portage/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/quotes/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/uri/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/use/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/useless/__init__.py | 3 ++- repoman/pym/repoman/modules/linechecks/whitespace/__init__.py| 3 ++- repoman/pym/repoman/modules/linechecks/workaround/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/depend/__init__.py | 3 ++- repoman/pym/repoman/modules/scan/directories/__init__.py | 3 ++- repoman/pym/repoman/modules/scan/eapi/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/ebuild/__init__.py | 3 ++- repoman/pym/repoman/modules/scan/eclasses/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/fetch/__init__.py | 3 ++- repoman/pym/repoman/modules/scan/keywords/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/manifest/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/metadata/__init__.py| 3 ++- repoman/pym/repoman/modules/scan/module.py | 9 ++--- repoman/pym/repoman/modules/scan/options/__init__.py | 3 ++- repoman/pym/repoman/qa_data.py | 4 ++-- repoman/pym/repoman/repos.py | 2 +- repoman/pym/repoman/scanner.py | 3 ++- 35 files changed, 76 insertions(+), 38 deletions(-) diff --git a/repoman/pym/repoman/config.py b/repoman/pym/repoman/config.py index f98130db3..dbf75237c 100644 --- a/repoman/pym/repoman/config.py +++ b/repoman/pym/repoman/config.py @@ -142,8 +142,11 @@ def load_config(conf_dirs, file_extensions=None, valid_versions=None): if config: if config['version'] not in valid_versions: - raise ConfigError("Invalid file version: %s in: %s\nPlease upgrade repoman: current valid versions: %s" - % (config['version'], filename, valid_versions)) + raise ConfigError( + "Invalid file version: %s in: %s\nPlease upgrade to " + ">=app-portage/repoman-%s, current valid API versions: %s" + % (config['version'], filename, + config['repoman_version'], valid_versions)) result = merge_config(result, config) return result diff --git a/repoman/pym/repoman/main.py b/repoman/pym/repoman/main.py index c1e3b99fe..81e2ff61e 100755 --- a/repoman/pym/repoman/main.py +++ b/repoman/pym/repoman/main.py @@ -47,10 +47,12 @@ os.umask(0o22) LOGLEVEL = logging.WARNING portage.util.initialize_logger(LOGLEVEL) +VALID_VERSIONS = [1,] def repoman_main(argv): config_root = os.environ.get("PORTAGE_CONFIGROOT") repoman_settings = portage.config(config_root=config_root, local_config=False) + repoman_settings.valid_versions = VALID_VERSIONS if repoman_settings.get("NOCOLOR", "").lower() in ("yes", "true") or \ repoman_settings.get('TERM') == 'dumb' or \ @@ -92,6 +94,7 @@ def repoman_main(argv): config_root, portdir, portdir_overlay, repoman_settings, vcs_settings, options, qadata) repoman_settings = repo_settings.repoman_settings +
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: 45f0f79e82e840bee272bf01b0ffb6213ddc Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Sun Nov 26 17:32:19 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=45f0f79e repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: 439cb1c9cb54c7471996c97f60028d7b528d0d18 Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Mon Sep 11 16:13:16 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=439cb1c9 repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: 3a2c108052c22bb753dfb2e363f086c4e78dcf1a Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Sat Jul 15 02:25:45 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=3a2c1080 repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'
[gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/modules/linechecks/use/
commit: 72e9673c9b3123769326f94f02dbe00f6bc3951a Author: Brian Dolbec gentoo org> AuthorDate: Sat Jul 15 01:05:56 2017 + Commit: Brian Dolbec gentoo org> CommitDate: Sat Jul 15 02:08:28 2017 + URL:https://gitweb.gentoo.org/proj/portage.git/commit/?id=72e9673c repoman: New linechecks module, use .../pym/repoman/modules/linechecks/use/__init__.py | 21 + .../pym/repoman/modules/linechecks/use/builtwith.py | 10 ++ 2 files changed, 31 insertions(+) diff --git a/repoman/pym/repoman/modules/linechecks/use/__init__.py b/repoman/pym/repoman/modules/linechecks/use/__init__.py new file mode 100644 index 0..e5665d2d8 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/__init__.py @@ -0,0 +1,21 @@ +# Copyright 2015-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +doc = """Use plug-in module for repoman LineChecks. +Performs Built-With-Use checks on ebuilds.""" +__doc__ = doc[:] + + +module_spec = { + 'name': 'do', + 'description': doc, + 'provides':{ + 'builtwith-check': { + 'name': "builtwith", + 'sourcefile': "builtwith", + 'class': "BuiltWithUse", + 'description': doc, + }, + } +} + diff --git a/repoman/pym/repoman/modules/linechecks/use/builtwith.py b/repoman/pym/repoman/modules/linechecks/use/builtwith.py new file mode 100644 index 0..0ec4fae21 --- /dev/null +++ b/repoman/pym/repoman/modules/linechecks/use/builtwith.py @@ -0,0 +1,10 @@ + +import re + +from repoman.modules.linechecks.base import LineCheck + + +class BuiltWithUse(LineCheck): + repoman_check_name = 'ebuild.minorsyn' + re = re.compile(r'(^|.*\b)built_with_use\b') + error = 'BUILT_WITH_USE'