update
[infrastructure.git] / scripts / alpha-repo.py
index cf23223..c4fef59 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/python
-
+# $Id$
 # expected argument is a URL on build.onelab.eu
 # this would then update the alpha node repo from that place
 # NOTE
@@ -33,6 +33,7 @@ def prompt (question,default=True):
     except:
         raise
 
+##########
 def run (command,options,force=False):
     if ( force or not options.dry_run):
         print 'Running',command
@@ -113,6 +114,10 @@ def main ():
     if prompt ('Need to fetch rpms from %s ' % http):
         rsync_xfer(http,repo,options)
     
+    if prompt ('Install yumgroups'):
+        command="mv %s/xfer/RPMS/yumgroups.xml %s/"%(repo,repo)
+        run(command,options)
+
     if prompt ('Get list of standard rpms from %s ' % standard):
         rpm_names=extract_contents(standard)