File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/python
2+
3+ # Copyright (C) 2009-2012 Nicira Networks, Inc. All Rights Reserved.
4+ #
5+ # This software is provided only under the terms and conditions of a written
6+ # license agreement with Nicira. If no such agreement applies to you, you are
7+ # not authorized to use this software. Contact Nicira to obtain an appropriate
8+ # license: www.nicira.com.
9+ #
10+ # Author(s): Dave Lapsley
11+
12+ import os
13+ import subprocess
14+ import urllib
15+
16+ stack_root = '/opt/stack'
17+
18+ try :
19+ os .mkdir (stack_root )
20+ except OSError as e :
21+ print 'Directory: %s' % e
22+
23+ with open ('repos.dat' ) as input :
24+ for l in input .readlines ():
25+ l = l .strip ()
26+ repo , commit = l .split ()
27+ host , path = urllib .splithost (repo )
28+ repo_dir = (stack_root + '/'
29+ + os .path .splitext (os .path .basename (path ))[0 ])
30+ subprocess .call (['git' , 'clone' , repo , repo_dir ])
31+ subprocess .call ('cd %s && git checkout %s' % (repo_dir , commit ),
32+ shell = True )
Original file line number Diff line number Diff line change 1+ https://github.com/openstack/nova.git adb2124
2+ https://github.com/openstack/glance.git 8e9e0ca
3+ https://github.com/openstack/keystone.git 198fe22
4+ https://github.com/cloudbuilders/noVNC.git 22b9a75
5+ https://github.com/openstack/horizon.git c555673
6+ https://github.com/openstack/python-novaclient.git f6014dd
7+ https://github.com/openstack/python-keystoneclient 7b85329
8+ https://github.com/openstack/quantum 540f1ed
9+ https://github.com/openstack/python-quantumclient 9b09f53
You can’t perform that action at this time.
0 commit comments