summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-12-23 01:46:12 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-12-23 01:46:12 +0000
commit173ae42a550e65150e7d44248b44bc44ab3299cc (patch)
treeb50d126522d2ecfb8b4b742199d0d6ccb49d2eb6 /src/sbin
parentacbf68b060fe05bf60f479727684e2c00ec0405d (diff)
downloadbcfg2-173ae42a550e65150e7d44248b44bc44ab3299cc.tar.gz
bcfg2-173ae42a550e65150e7d44248b44bc44ab3299cc.tar.bz2
bcfg2-173ae42a550e65150e7d44248b44bc44ab3299cc.zip
More gentoo updates from mjinks
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2609 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-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)