From: Zac Medico Date: Mon, 5 Jun 2006 07:43:43 +0000 (-0000) Subject: Add python 2.3 compatibility code for the set builtin. X-Git-Tag: v2.1~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=049b49eaf3005f745b9e9d45f907d462f6dd2c60;p=portage.git Add python 2.3 compatibility code for the set builtin. svn path=/main/trunk/; revision=3460 --- 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