From: Zac Medico Date: Mon, 7 Sep 2009 02:54:36 +0000 (-0000) Subject: In catpkgsplit(), use split('/', 1) since there should never be more than on X-Git-Tag: v2.2_rc41~58 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fde774720c2552e187f58a6395e40fe12dd88cd;p=portage.git In catpkgsplit(), use split('/', 1) since there should never be more than on slash to split. svn path=/main/trunk/; revision=14210 --- diff --git a/pym/portage/versions.py b/pym/portage/versions.py index 8a3fe0d07..abd85d273 100644 --- a/pym/portage/versions.py +++ b/pym/portage/versions.py @@ -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"]