From: Zac Medico Date: Tue, 20 Mar 2007 22:08:41 +0000 (-0000) Subject: Add a docstring to config.getMissingLicenses(). X-Git-Tag: v2.2_pre1~1555 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=891f15514e052b57d635db8bbc0bc14a535ddeb6;p=portage.git Add a docstring to config.getMissingLicenses(). svn path=/main/trunk/; revision=6259 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 485f89e06..11dca580a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -1749,6 +1749,19 @@ class config: self.reset(keeping_pkg=1,use_cache=use_cache) def getMissingLicenses(self, licenses, cpv): + """ + Take a LICENSE string and return a list any licenses that the user may + may need to accept for the given package. The returned list will not + contain any licenses that have already been accepted. This method + can throw an InvalidDependString exception. + + @param licenses: A raw LICENSE string as returned form dbapi.aux_get() + @type licenses: String + @param cpv: The package name (for evaluation of USE conditionals) + @type cpv: String + @rtype: List + @return: A list of licenses that have not been accepted. + """ cpdict = self._plicensedict.get(dep_getkey(cpv), None) acceptable_licenses = self._accept_license.copy() if cpdict: