summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 21:32:33 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 21:32:33 +0000
commitda67328341fef2cc4d9e85be0694aad113b30c0a (patch)
tree8c330b0d55f8094d9dc5e8c81a7324e7c6635e66 /pym
parentcatch and validate new ValueError Exception (diff)
downloadportage-multirepo-da67328341fef2cc4d9e85be0694aad113b30c0a.tar.gz
portage-multirepo-da67328341fef2cc4d9e85be0694aad113b30c0a.tar.bz2
portage-multirepo-da67328341fef2cc4d9e85be0694aad113b30c0a.zip
Fix comments for catpkgsplit
svn path=/main/trunk/; revision=5570
Diffstat (limited to 'pym')
-rw-r--r--pym/portage_versions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage_versions.py b/pym/portage_versions.py
index 5cedd650..706c197f 100644
--- a/pym/portage_versions.py
+++ b/pym/portage_versions.py
@@ -261,7 +261,8 @@ def catpkgsplit(mydata,silent=1):
1. If each exists, it returns [cat, pkgname, version, rev]
2. If cat is not specificed in mydata, cat will be "null"
3. if rev does not exist it will be '-r0'
- 1. If the cat, pkg, or version is invalid, return None
+ 4. If cat is invalid (specified but has incorrect syntax)
+ a ValueError will be thrown
"""
# Categories may contain a-zA-z0-9+_- but cannot start with -