Remove pointless cvs dependent REPOROOTS code. Thanks to Alec Warner <antarus@gentoo...
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 01:01:59 +0000 (01:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Jul 2006 01:01:59 +0000 (01:01 -0000)
svn path=/main/trunk/; revision=4049

bin/repoman

index 7793f60746df96ab7af623a080d783e930bf924b..2ff21dce325539f42cc7dbd4401d46803d8c2817 100755 (executable)
@@ -71,7 +71,6 @@ def exithandler(signum=None,frame=None):
        os.kill(0,signal.SIGKILL)
 signal.signal(signal.SIGINT,exithandler)
 
-REPOROOTS=["gentoo-x86"]
 shortmodes={"ci":"commit"}
 modeshelp={
 "scan"   : "Scan directory tree for QA issues (default)",
@@ -404,22 +403,7 @@ if os.path.isdir("CVS"):
                print red("!!! ")+bold("Adding \"cvs\" to FEATURES")
                print
                os.environ["FEATURES"]=repoman_settings["FEATURES"]+" cvs"
-
-       try:
-               isCvs=True
-               myrepofile=open("CVS/Repository")
-               myreporoot=myrepofile.readline()[:-1]
-               myrepofile.close()
-               myrepofile=open("CVS/Root")
-               myreporootpath=string.split(myrepofile.readline()[:-1], ":")[-1]
-               myrepofile.close()
-               if myreporootpath == myreporoot[:len(myreporootpath)]:
-                       # goofy os x cvs co.
-                       myreporoot = myreporoot[len(myreporootpath):]
-                       while myreporoot and myreporoot[0] == '/':
-                               myreporoot = myreporoot[1:]
-       except (OSError, IOError):
-               err("Error grabbing repository information; exiting.")
+       isCvs = True
 
 if not "--pretend" in myoptions and not isCvs:
        print
@@ -498,13 +482,6 @@ if not myreporoot:
        myreporoot = os.path.basename(portdir_overlay)
        myreporoot += mydir[len(portdir_overlay):-1]
 
-if isCvs:
-       reporoot=None
-       for x in REPOROOTS:
-               if myreporoot[0:len(x)]==x:
-                       reporoot=myreporoot
-       if not reporoot:
-               err("Couldn't recognize repository type.  Supported repositories:\n"+repr(REPOROOTS))
 reposplit=string.split(myreporoot,"/")
 repolevel=len(reposplit)