public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/, pym/repoman/modules/scan/keywords/, ...
Date: Mon, 25 Apr 2016 15:32:28 +0000 (UTC)	[thread overview]
Message-ID: <1461598133.c24cac30a56bd7922d977999752b19ed3f64a300.dolsen@gentoo> (raw)

commit:     c24cac30a56bd7922d977999752b19ed3f64a300
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 15:39:40 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 15:28:53 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=c24cac30

repoman: Populate module_spec's func_kwargs for all scan modules

First step towards a propoerly controlled module data exchange interface.

 pym/repoman/modules/scan/arches/__init__.py      |  2 +-
 pym/repoman/modules/scan/depend/__init__.py      | 10 +++++++---
 pym/repoman/modules/scan/directories/__init__.py |  5 +++--
 pym/repoman/modules/scan/eapi/__init__.py        |  2 +-
 pym/repoman/modules/scan/ebuild/__init__.py      | 10 +++++++---
 pym/repoman/modules/scan/eclasses/__init__.py    |  5 +++--
 pym/repoman/modules/scan/fetch/__init__.py       |  4 +++-
 pym/repoman/modules/scan/keywords/__init__.py    |  3 ++-
 pym/repoman/modules/scan/manifest/__init__.py    |  2 +-
 pym/repoman/modules/scan/metadata/__init__.py    | 16 ++++++++++------
 pym/repoman/modules/scan/mirrors/__init__.py     |  2 +-
 pym/repoman/modules/scan/status/__init__.py      |  3 ++-
 pym/repoman/modules/scan/use/__init__.py         |  4 +++-
 13 files changed, 44 insertions(+), 24 deletions(-)

diff --git a/pym/repoman/modules/scan/arches/__init__.py b/pym/repoman/modules/scan/arches/__init__.py
index b87e07c..e4a4806 100644
--- a/pym/repoman/modules/scan/arches/__init__.py
+++ b/pym/repoman/modules/scan/arches/__init__.py
@@ -20,7 +20,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['options', 'repo_settings', 'profiles'
 			],
-			'func_kwargs': {'ebuild': None,
+			'func_kwargs': {'ebuild': None, 'arches': 'set',
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/depend/__init__.py b/pym/repoman/modules/scan/depend/__init__.py
index a0f2f9a..a2b8534 100644
--- a/pym/repoman/modules/scan/depend/__init__.py
+++ b/pym/repoman/modules/scan/depend/__init__.py
@@ -20,7 +20,9 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'portdb'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'pkg': None, 'unknown_pkgs': 'set',
+				'type_list': [], 'badlicsyntax': 'Future',
+				'baddepsyntax': 'Future',
 			},
 		},
 		'profile-module': {
@@ -35,7 +37,8 @@ module_spec = {
 				'repo_settings', 'include_arches', 'caches',
 				'repoman_incrementals', 'env', 'have', 'dev_keywords'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'arches': 'set', 'ebuild': None, 'pkg': None,
+				'unknown_pkgs': 'set', 'baddepsyntax': 'Future',
 			},
 		},
 		'unknown-module': {
@@ -48,7 +51,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'unknown_pkgs': 'set',
+				'baddepsyntax': 'Future',
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/directories/__init__.py b/pym/repoman/modules/scan/directories/__init__.py
index d50ace5..0193843 100644
--- a/pym/repoman/modules/scan/directories/__init__.py
+++ b/pym/repoman/modules/scan/directories/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['portdb', 'qatracker', 'repo_settings', 'vcs_settings',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'checkdir': None, 'checkdirlist': None,
+				'checkdir_relative': None, 'changed': None,
 			},
 		},
 		'mtime-module': {
@@ -33,7 +34,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['vcs_settings',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'changed': None, 'pkg': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/eapi/__init__.py b/pym/repoman/modules/scan/eapi/__init__.py
index 63618ab..376e79a 100644
--- a/pym/repoman/modules/scan/eapi/__init__.py
+++ b/pym/repoman/modules/scan/eapi/__init__.py
@@ -20,7 +20,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'repo_settings'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/ebuild/__init__.py b/pym/repoman/modules/scan/ebuild/__init__.py
index 9cd49f8..eb9098c 100644
--- a/pym/repoman/modules/scan/ebuild/__init__.py
+++ b/pym/repoman/modules/scan/ebuild/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['portdb', 'qatracker', 'repo_settings'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'checkdirlist': 'list', 'checkdir': None, 'xpkg': None,
+				'validity_fuse': None, 'can_force': 'Future', 'pkgs': 'dict',
 			},
 		},
 		'ebuild-module': {
@@ -33,7 +34,10 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'repo_settings', 'vcs_settings', 'checks',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'y_ebuild': None, 'changed': None,
+				'changelog_modified': None, 'pkg': 'Future', 'pkgs': None,
+				'ebuild': 'Future', 'validity_future': None, 'pkgdir': None,
+				'repolevel': None, 'catdir': None,
 			},
 		},
 		'multicheck-module': {
@@ -46,7 +50,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'options'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'pkg': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/eclasses/__init__.py b/pym/repoman/modules/scan/eclasses/__init__.py
index c39589e..7be954c 100644
--- a/pym/repoman/modules/scan/eclasses/__init__.py
+++ b/pym/repoman/modules/scan/eclasses/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'repo_metadata', 'repo_settings',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'live_ebuild': 'set', 'pkg': None, 'xpkg': None,
+				'ebuild': None, 'y_ebuild': None,
 			},
 		},
 		'ruby-module': {
@@ -33,7 +34,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker'
 			],
-			'func_kwargs': {
+			'func_kwargs': {'pkg': None, 'ebuild': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/fetch/__init__.py b/pym/repoman/modules/scan/fetch/__init__.py
index 303eb19..795eabf 100644
--- a/pym/repoman/modules/scan/fetch/__init__.py
+++ b/pym/repoman/modules/scan/fetch/__init__.py
@@ -20,7 +20,9 @@ module_spec = {
 			},
 			'mod_kwargs': ['portdb', 'qatracker', 'repo_settings', 'vcs_settings',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'checkdir': None,
+				'checkdir_relative': None, 'changed': None,
+				'src_uri_error': 'Future',
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/keywords/__init__.py b/pym/repoman/modules/scan/keywords/__init__.py
index 471f447..2d92dba 100644
--- a/pym/repoman/modules/scan/keywords/__init__.py
+++ b/pym/repoman/modules/scan/keywords/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'options', 'repo_metadata', 'profiles',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'pkg': None, 'xpkg': None, 'ebuild': None,
+				'y_ebuild': None, 'changed': None, 'live_ebuild': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/manifest/__init__.py b/pym/repoman/modules/scan/manifest/__init__.py
index 4aa80cf..bd9f8da 100644
--- a/pym/repoman/modules/scan/manifest/__init__.py
+++ b/pym/repoman/modules/scan/manifest/__init__.py
@@ -20,7 +20,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['options', 'portdb', 'qatracker', 'repo_settings',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'checkdir': None, 'xpkg': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/metadata/__init__.py b/pym/repoman/modules/scan/metadata/__init__.py
index 90981d8..1e690bf 100644
--- a/pym/repoman/modules/scan/metadata/__init__.py
+++ b/pym/repoman/modules/scan/metadata/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['repo_settings', 'qatracker', 'options', 'metadata_dtd',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'checkdir': None, 'checkdirlist': None,
+				'repolevel': None, 'muselist': 'set',
 			},
 		},
 		'ebuild-metadata': {
@@ -33,7 +34,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'catdir': None, 'live_ebuild': None,
+				'xpkg': None, 'y_ebuild': None,
 			},
 		},
 		'description-metadata': {
@@ -46,7 +48,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'pkg': None,
 			},
 		},
 		'license-metadata': {
@@ -59,7 +61,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'repo_metadata',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'ebuild': None, 'y_ebuild': None,
+				'badlicsyntax': None,
 			},
 		},
 		'restrict-metadata': {
@@ -72,7 +75,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'ebuild': None, 'y_ebuild': None,
 			},
 		},
 		'unused-metadata': {
@@ -85,7 +88,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'xpkg': None, 'muselist': None, 'used_useflags': None,
+				'validity_future': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/mirrors/__init__.py b/pym/repoman/modules/scan/mirrors/__init__.py
index 8ae58b5..1885dca 100644
--- a/pym/repoman/modules/scan/mirrors/__init__.py
+++ b/pym/repoman/modules/scan/mirrors/__init__.py
@@ -20,7 +20,7 @@ module_spec = {
 			},
 			'mod_kwargs': ['repo_settings', 'qatracker',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'ebuild': None, 'src_uri_error': None,
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/status/__init__.py b/pym/repoman/modules/scan/status/__init__.py
index a5eeb3e..f4683bb 100644
--- a/pym/repoman/modules/scan/status/__init__.py
+++ b/pym/repoman/modules/scan/status/__init__.py
@@ -20,7 +20,8 @@ module_spec = {
 			},
 			'mod_kwargs': ['vcs_settings', 'checks',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'checkdir': None, 'checkdir_relative': None,
+				'xpkg': None, 'eadded': 'Future',
 			},
 		},
 	}

diff --git a/pym/repoman/modules/scan/use/__init__.py b/pym/repoman/modules/scan/use/__init__.py
index 349980d..f157386 100644
--- a/pym/repoman/modules/scan/use/__init__.py
+++ b/pym/repoman/modules/scan/use/__init__.py
@@ -20,7 +20,9 @@ module_spec = {
 			},
 			'mod_kwargs': ['qatracker', 'uselist',
 			],
-			'func_kwargs': {
+			'func_kwargs': {'pkg': None, 'xpkg': None, 'ebuild': None,
+				'y_ebuild': None, 'muselist': None, 'ebuild_UsedUseFlags': 'set',
+				'used_useflags': None,
 			},
 		},
 	}


             reply	other threads:[~2016-04-25 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 15:32 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-04-25  3:09 [gentoo-commits] proj/portage:repoman commit in: pym/repoman/modules/scan/ebuild/, pym/repoman/modules/scan/keywords/, Brian Dolbec
2016-04-24  1:00 Brian Dolbec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1461598133.c24cac30a56bd7922d977999752b19ed3f64a300.dolsen@gentoo \
    --to=dolsen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox