* [gentoo-commits] proj/portage:xml-schema commit in: pym/repoman/modules/scan/metadata/
@ 2016-04-17 7:49 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2016-04-17 7:49 UTC (permalink / raw
To: gentoo-commits
commit: 4c9cb5cb9e90e2a576f4d4a37bafbea9372c3ebe
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 15 18:45:45 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 15 18:45:45 2016 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=4c9cb5cb
repoman/modules.scan/metadata/unused.py: Add docstrings
Remove un-needed override functions
pym/repoman/modules/scan/metadata/unused.py | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/pym/repoman/modules/scan/metadata/unused.py b/pym/repoman/modules/scan/metadata/unused.py
index b3dc863..6def48f 100644
--- a/pym/repoman/modules/scan/metadata/unused.py
+++ b/pym/repoman/modules/scan/metadata/unused.py
@@ -1,11 +1,23 @@
class UnusedCheck(object):
+ '''Checks and reports any un-used metadata.xml use flag descriptions'''
def __init__(self, **kwargs):
+ '''UnusedCheck init function
+
+ @param qatracker: QATracker instance
+ '''
self.qatracker = kwargs.get('qatracker')
def check(self, **kwargs):
+ '''Reports on any unused metadata.xml use descriptions
+
+ @param xpkg: the pacakge being checked
+ @param muselist: use flag list
+ @param used_useflags: use flag list
+ @param validity_fuse: Fuse instance
+ '''
xpkg = kwargs.get('xpkg')
muselist = kwargs.get('muselist')
used_useflags = kwargs.get('used_useflags')
@@ -20,13 +32,6 @@ class UnusedCheck(object):
return {'continue': False}
@property
- def runInPkgs(self):
- return (False, [])
-
- @property
- def runInEbuilds(self):
- return (False, [])
-
- @property
def runInFinal(self):
+ '''Final scans at the package level'''
return (True, [self.check])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-17 7:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17 7:49 [gentoo-commits] proj/portage:xml-schema commit in: pym/repoman/modules/scan/metadata/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox