diff options
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r-- | pym/portage/versions.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 60e58b894..dababe0c7 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -229,7 +229,12 @@ def pkgcmp(pkg1, pkg2): _pv_re = re.compile('^' + _pv + '$', re.VERBOSE) def _pkgsplit(mypkg): - + """ + @param mypkg: pv + @return: + 1. None if input is invalid. + 2. (pn, ver, rev) if input is pv + """ m = _pv_re.match(mypkg) if m is None: return None |