Changeset 922

Show
Ignore:
Timestamp:
10/15/07 03:56:36 (3 years ago)
Author:
dokai
Message:

Added support for the debian buildout.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buildout/pcl.buildout/trunk/init_postgresql.py

    r834 r922  
    2828        raise RuntimeError('Error running command: %s' % cmd) 
    2929 
    30 def initpg(port, datadir, postgresprefix, postgisprefix, worldborders): 
     30def initpg(port, datadir, postgresprefix, postgisprefix, worldborders, buildout): 
    3131    """Initializes a test PostgreSQL server.""" 
    3232    # Shut down the server if it is running 
     
    8787        # test runner gets updated. 
    8888        open('pclcore-test-environment.cfg', 'w').write(test_env_tmpl % dict(port=port, dbname=PGDBNAME)) 
    89         system('./bin/buildout') 
     89        system('./bin/buildout -c %s' % buildout) 
    9090 
    9191     
     
    104104                      default='parts/worldborders/world_borders.shp', 
    105105                      help='Location of the world_borders.shp file.') 
     106    parser.add_option('--buildout-cfg', dest='buildout', 
     107                      default='buildout.cfg', 
     108                      help="Buildout config to use. If you are using the debian package based buildout use 'buildout-deb.cfg' here.") 
    106109 
    107110    options, args = parser.parse_args() 
     
    114117           postgresprefix=p(options.postgresprefix), 
    115118           postgisprefix=p(options.postgisprefix), 
    116            worldborders=p(options.worldborders)) 
     119           worldborders=p(options.worldborders), 
     120           buildout=options.buildout) 
    117121 
    118122    print '\n\n'