Add python 2.3 compatibility code for the set builtin.
authorZac Medico <zmedico@gentoo.org>
Mon, 5 Jun 2006 07:43:43 +0000 (07:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 5 Jun 2006 07:43:43 +0000 (07:43 -0000)
svn path=/main/trunk/; revision=3460

bin/repoman

index 83f4b96cb254313bd0029b1c25f7f8a3c28764af..c987dc3e2648c4ffab0a89019402907ca622d091 100755 (executable)
@@ -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