changeset 10:ac44aa18da38

add comments
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 08 Nov 2010 08:05:14 -0800
parents fe197282c615
children 8a54d538646a
files buttercup/checkout.py
diffstat 1 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/buttercup/checkout.py	Mon Nov 08 07:57:13 2010 -0800
+++ b/buttercup/checkout.py	Mon Nov 08 08:05:14 2010 -0800
@@ -15,7 +15,8 @@
 from optparse import OptionParser
 
 HG='http://k0s.org/hg'
-PACKAGES=['bitsyauth',
+PACKAGES=['bitsyapps',
+          'bitsyauth',
           'bitsyblog',
           'bitsytweet',
           'buttercup',
@@ -37,6 +38,11 @@
             for package in PACKAGES ]
 
 def main(args=sys.argv[1:]):
+
+    # get source repositories
+    sources = globals()['sources']()
+
+    # parse command line options
     parser = OptionParser()
     parser.add_option('--install', action="store_true", default=False,
                       help="install the packages")
@@ -44,21 +50,24 @@
                       help="list the source to be installed")
     options, args = parser.parse_args(args)
 
-    sources = globals()['sources']()
+    # list sources if specified
     if options.list:
         for source in sources:
             print source[0], source[1]
         sys.exit(0)
 
+    # setup the src directory in a virtualenv
     assert 'VIRTUAL_ENV' in os.environ
     src = os.path.join(os.environ['VIRTUAL_ENV'], 'src')
     if not os.path.exists(src):
         os.mkdir(src)
     os.chdir(src)
 
+    # clone the sources
     for source in sources:
         subprocess.call(['hg', 'clone', source[1]])
 
+    # install the sources
     if options.install:
         for source in sources:
             os.chdir(source[0])