diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-06-05 07:43:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-06-05 07:43:43 +0000 |
commit | 049b49eaf3005f745b9e9d45f907d462f6dd2c60 (patch) | |
tree | 654b856e70c191390863866bd6209659bce088a5 | |
parent | c0264e60a99bad2664b3d787756d0aae9ff11b5c (diff) | |
download | portage-049b49eaf3005f745b9e9d45f907d462f6dd2c60.tar.gz portage-049b49eaf3005f745b9e9d45f907d462f6dd2c60.tar.bz2 portage-049b49eaf3005f745b9e9d45f907d462f6dd2c60.zip |
Add python 2.3 compatibility code for the set builtin.
svn path=/main/trunk/; revision=3460
-rwxr-xr-x | bin/repoman | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/repoman b/bin/repoman index 83f4b96cb..c987dc3e2 100755 --- a/bin/repoman +++ b/bin/repoman @@ -8,6 +8,8 @@ # that last one is tricky because multiple profiles need to be checked. import os,sys,shutil +if not hasattr(__builtins__, "set"): + from sets import Set as set exename=os.path.basename(sys.argv[0]) os.environ["PORTAGE_CALLER"]="repoman" sys.path = ["/usr/lib/portage/pym"]+sys.path |