From: Alec Warner Date: Thu, 6 Apr 2006 05:37:24 +0000 (-0000) Subject: Remove really really old check during a cvs move. Fix except statement to be saner X-Git-Tag: v2.1_pre8~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a7845c85f73123789bc86758f0cce57a32adbcd4;p=portage.git Remove really really old check during a cvs move. Fix except statement to be saner svn path=/main/trunk/; revision=3079 --- diff --git a/bin/repoman b/bin/repoman index 7068ccdd9..123b5672d 100755 --- a/bin/repoman +++ b/bin/repoman @@ -404,37 +404,8 @@ if os.path.isdir("CVS"): myreporoot = myreporoot[len(myreporootpath):] while myreporoot and myreporoot[0] == '/': myreporoot = myreporoot[1:] - except SystemExit, e: - raise # Need to propogate this - except: + except (OSError, IOError): err("Error grabbing repository information; exiting.") - myreporootpath=os.path.normpath(myreporootpath) - if myreporootpath=="/space/cvsroot": - print - print - print red("You're using the wrong cvsroot. For Manifests to be correct, you must") - print red("use the same base cvsroot path that the servers use. Please try the") - print red("following script to remedy this:") - print - print "cd my_cvs_tree" - print - print "rm -Rf [a-z]*" - print "cvs up" - print - if portage.userland=="BSD" or portage.userland=="Darwin": - print "find ./ -type f -regex '.*/CVS/Root$' -print0 | xargs -0 sed \\" - else: - print "find ./ -type f -regex '.*/CVS/Root$' -print0 | xargs -0r sed \\" - fi - print " -i 's:/space/cvsroot$:/home/cvsroot:'" - print - print red("You must clear and re-update your tree as all header tags will cause") - print red("problems in manifests for all rsync and /home/cvsroot users.") - print - print "You should do this to any other gentoo trees your have as well," - print "excluding the deletions. 'gentoo-src' should be /home/cvsroot." - print - sys.exit(123) if not "--pretend" in myoptions and not isCvs: print