From: Fabian Groffen Date: Tue, 6 Mar 2007 15:44:03 +0000 (-0000) Subject: Don't blindly rely on the "character position" of the data we need, X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=aaca59f2a0c2ab423fd077967893c7bc76f8018e;p=portage.git Don't blindly rely on the "character position" of the data we need, because in locales other than C this makes completely no sense. Instead (because my python skills are far from good) split on the colon and take the righthand side. svn path=/main/branches/prefix/; revision=6185 --- diff --git a/bin/repoman b/bin/repoman index d91fbb035..c785d0a15 100755 --- a/bin/repoman +++ b/bin/repoman @@ -436,8 +436,8 @@ if os.path.isdir(".svn"): try: isSvn=True myrepoinfo = os.popen("svn info").readlines() - myurl = myrepoinfo[1][5:].rstrip() - myreproot = myrepoinfo[2][17:].rstrip() + myurl = myrepoinfo[1].split(":")[1].rstrip() + myreproot = myrepoinfo[2].split(":")[1].rstrip() # This one is EVIL, but I don't know how to solve the problem of # getting rid of /trunk/prefix-overlay. This only works on the # prefix overlay.