Don't blindly rely on the "character position" of the data we need,
authorFabian Groffen <grobian@gentoo.org>
Tue, 6 Mar 2007 15:44:03 +0000 (15:44 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 6 Mar 2007 15:44:03 +0000 (15:44 -0000)
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

bin/repoman

index d91fbb0350c707c028b949ec4a675b861939bd12..c785d0a15688a6a4ae0b9d412d92ce22de8684b2 100755 (executable)
@@ -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.