Changeset 10595

Show
Ignore:
Timestamp:
02/28/11 13:53:59 (2 years ago)
Author:
Snyder.Jason
Message:

install now throws an error if you try to install a waveform that is not installed on the system

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/trunk/tools/wavedash/src/wavecli.py

    r10586 r10595  
    3030         
    3131        if options.waveformToInstall: 
    32             installed = ctrlr.installWaveform(options.waveformToInstall, False) 
    33             if installed: 
    34                 print 'Successfully installed ' + installed 
     32            if options.waveformToInstall in [wave.getName() for wave in ctrlr.model.getSystemWaveforms()]: 
     33                installed = ctrlr.installWaveform(options.waveformToInstall, False) 
     34                if installed: 
     35                    print 'Successfully installed ' + installed 
     36            else: 
     37                print options.waveformToInstall + ' not found.' 
    3538         
    3639        elif options.waveformToStart: