In catpkgsplit(), use split('/', 1) since there should never be more than on
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Sep 2009 02:54:36 +0000 (02:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Sep 2009 02:54:36 +0000 (02:54 -0000)
slash to split.

svn path=/main/trunk/; revision=14210

pym/portage/versions.py

index 8a3fe0d073734137cd30b5dd7d7a2f13e222d4de..abd85d2731f9269706e885e55b6d882bc9bb5b20 100644 (file)
@@ -271,7 +271,7 @@ def catpkgsplit(mydata,silent=1):
                return catcache[mydata]
        except KeyError:
                pass
-       mysplit=mydata.split("/")
+       mysplit = mydata.split('/', 1)
        p_split=None
        if len(mysplit)==1:
                retval=["null"]