diff options
author | Marius Mauch <genone@gentoo.org> | 2006-10-26 15:43:40 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2006-10-26 15:43:40 +0000 |
commit | 8bdb33b9037f748380041aa8382dd4981921ddf2 (patch) | |
tree | 9b5ee985772dd3f4d2ff540e544ffb5d36583667 /pym/portage.py | |
parent | d110e776d3c178444130b1361a50b00eac7c0275 (diff) | |
download | portage-8bdb33b9037f748380041aa8382dd4981921ddf2.tar.gz portage-8bdb33b9037f748380041aa8382dd4981921ddf2.tar.bz2 portage-8bdb33b9037f748380041aa8382dd4981921ddf2.zip |
rename getmaskingreason() to getpmaskcomment() to clarify its function, report each license as a separate mask instead of combining them all together into a single value for getmaskingstatus()
svn path=/main/trunk/; revision=4823
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 958363042..165b05041 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -3832,7 +3832,7 @@ def cpv_expand(mycpv, mydb=None, use_cache=1, settings=None): else: return mykey -def getmaskingreason(mycpv, settings=None, portdb=None): +def getpmaskcomment(mycpv, settings=None, portdb=None): from portage_util import grablines if settings is None: settings = globals()["settings"] @@ -3877,6 +3877,8 @@ def getmaskingreason(mycpv, settings=None, portdb=None): return comment i = i + 1 return None +# Compability name +getmaskingreason=getpmaskcomment def getmaskingstatus(mycpv, settings=None, portdb=None): if settings is None: @@ -3965,7 +3967,7 @@ def getmaskingstatus(mycpv, settings=None, portdb=None): license_req = dep_check(mylicense, None, settings, str_matches=str_matches)[1] if license_req: - rValue.append(" ".join(license_req) + " license(s)") + rValue += [x+" license" for x in license_req] return rValue |