summaryrefslogtreecommitdiffstats
path: root/pym/portage/versions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-25 03:05:30 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-25 03:05:30 +0000
commit7160f8bef23aea86974bc90c945b2e144ea2075b (patch)
tree8abfd3459fd4b9a585c843bd0a98ff87c08d9a19 /pym/portage/versions.py
parentbafdfbde7c25bbff8206c87a669ab847d9995c29 (diff)
downloadportage-7160f8bef23aea86974bc90c945b2e144ea2075b.tar.gz
portage-7160f8bef23aea86974bc90c945b2e144ea2075b.tar.bz2
portage-7160f8bef23aea86974bc90c945b2e144ea2075b.zip
Remove category validation cruft from catpkgsplit().
svn path=/main/trunk/; revision=10400
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r--pym/portage/versions.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py
index 4a12ef9d5..261fa9dea 100644
--- a/pym/portage/versions.py
+++ b/pym/portage/versions.py
@@ -269,12 +269,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'
- 4. If cat is invalid (specified but has incorrect syntax)
- an InvalidData Exception will be thrown
"""
-
- # Categories may contain a-zA-z0-9+_- but cannot start with -
- import portage.dep
+
try:
if not catcache[mydata]:
return None