summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-admin
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbin/bcfg2-admin')
-rwxr-xr-xsrc/sbin/bcfg2-admin6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 56ac43f58..76985712d 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -42,6 +42,7 @@ groups = '''
<Group name='suse' toolset='rh'/>
<Group name='mandrake' toolset='rh'/>
<Group name='solaris' toolset='solaris'/>
+ <Group name='gentoo' toolset='gentoo'/>
</Groups>
'''
clients = '''
@@ -58,6 +59,7 @@ c. Mandrake
d. Debian
e. Ubuntu
f. Solaris
+g. Gentoo
'''
def err_exit(msg):
@@ -108,7 +110,7 @@ def initialize_repo():
while ( selection == '' ):
print prompt
selection = raw_input(" selection: ")
- if selection.lower() not in 'abcde':
+ if selection.lower() not in 'abcdefg':
selection = ''
if selection.lower() == 'a':
selection = 'redhat'
@@ -122,6 +124,8 @@ def initialize_repo():
selection = 'ubuntu'
elif selection.lower() == 'f':
selection = 'solaris'
+ elif selection.lower() == 'g':
+ selection = 'gentoo'
open("%s/Metadata/groups.xml"%repo, "w").write(groups%selection)