diff options
author | Alec Warner <antarus@gentoo.org> | 2007-04-24 06:04:27 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-04-24 06:04:27 +0000 |
commit | a3d5e273e9c3ace7b5c341a18e3216f3a883cea0 (patch) | |
tree | ff7fbddf34c2606341ba41467451c847e8ab8971 | |
parent | c7c1ba8a8cce1751ea08196859d87fd084828fa8 (diff) | |
download | portage-a3d5e273e9c3ace7b5c341a18e3216f3a883cea0.tar.gz portage-a3d5e273e9c3ace7b5c341a18e3216f3a883cea0.tar.bz2 portage-a3d5e273e9c3ace7b5c341a18e3216f3a883cea0.zip |
Pretty up the repoman imports, use cPickle over pickle for performance
svn path=/main/trunk/; revision=6431
-rwxr-xr-x | bin/repoman | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman index 6194d1714..3eed1ddb0 100755 --- a/bin/repoman +++ b/bin/repoman @@ -7,9 +7,22 @@ # Then, check to make sure deps are satisfiable (to avoid "can't find match for" problems) # that last one is tricky because multiple profiles need to be checked. -import errno, os, shutil, sys +import errno +import os +import shutil +import sys +import signal +import re +import tempfile + +try: + import cPickle as picke +except ImportError: + import pickle + if not hasattr(__builtins__, "set"): from sets import Set as set + exename=os.path.basename(sys.argv[0]) version="1.2" @@ -20,8 +33,6 @@ map(allowed_filename_chars_set.setdefault, map(chr, range(ord('A'), ord('Z')+1)) map(allowed_filename_chars_set.setdefault, map(chr, range(ord('0'), ord('9')+1))) map(allowed_filename_chars_set.setdefault, map(chr, map(ord, [".", "-", "_", "+", ":"]))) -import signal,re,pickle,tempfile - os.environ["PORTAGE_LEGACY_GLOBALS"] = "false" try: import portage |