aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Dolbec <dolsen@gentoo.org>2016-03-15 11:45:45 -0700
committerBrian Dolbec <dolsen@gentoo.org>2016-03-15 11:45:45 -0700
commit4c9cb5cb9e90e2a576f4d4a37bafbea9372c3ebe (patch)
treeeddf179d783b3839206e27adba56029fa505e659
parentrepoman: Create a new boolean Fuse type (diff)
downloadportage-4c9cb5cb9e90e2a576f4d4a37bafbea9372c3ebe.tar.gz
portage-4c9cb5cb9e90e2a576f4d4a37bafbea9372c3ebe.tar.bz2
portage-4c9cb5cb9e90e2a576f4d4a37bafbea9372c3ebe.zip
repoman/modules.scan/metadata/unused.py: Add docstrings
Remove un-needed override functions
-rw-r--r--pym/repoman/modules/scan/metadata/unused.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/pym/repoman/modules/scan/metadata/unused.py b/pym/repoman/modules/scan/metadata/unused.py
index b3dc86336..6def48fe1 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])