Changeset 153

Show
Ignore:
Timestamp:
03/05/06 11:37:15 (3 years ago)
Author:
tim
Message:

change: the build only produces cache files when -R is given - to perform a first build you shuold pass the -R if you want to create cache files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pyramid/build.py

    r149 r153  
    138138                     
    139139                file(os.path.join(OUTPUTDIR,root,'index.html'),'w').write(html) 
    140                 pickle.dump(ctx,open(cachepath,'w')) 
     140                if rebuilddirs is not None: 
     141                    pickle.dump(ctx,open(cachepath,'w')) 
    141142            else: 
    142143                if ctx.verbose > 1: 
     
    152153    if options.rebuilddirs: 
    153154        rebuilddirs = options.rebuilddirs.strip().split(',') 
    154         if rebuilddirs == ['']: 
    155             rebuilddirs == None 
    156155    else: 
    157156        rebuilddirs = None