Changeset 3609

Show
Ignore:
Timestamp:
10/26/07 16:32:45 (1 year ago)
Author:
pobrien
Message:

Made packing an option that defaults to False.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Schevo/schevo/script/db_update.py

    r3509 r3609  
    3636                 metavar='PATH', 
    3737                 default=None, 
     38                 ) 
     39    p.add_option('-k', '--pack', 
     40                 dest = 'pack', 
     41                 help = 'Pack the database.', 
     42                 action = 'store_true', 
     43                 default = False, 
    3844                 ) 
    3945    p.add_option('-s', '--schema', dest='schema_path', 
     
    94100            print 'Importing icons...' 
    95101            schevo.icon.install(db, icon_path) 
    96         # Pack the database. 
    97         print 'Packing the database...' 
    98         db.pack() 
     102        if options.pack: 
     103            # Pack the database. 
     104            print 'Packing the database...' 
     105            db.pack() 
    99106        # Done. 
    100107        db.close()