/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to processors/info_processor.py

dump parameter for info processor

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        # Allow creation without a target
47
47
        processor.ImportProcessor.__init__(self, target, params, verbose)
48
48
 
49
 
 
50
49
    def pre_process(self):
51
50
        # Init statistics
52
51
        self.cmd_counts = {}
84
83
            note("\t%s\t%s" % (_found(self.executables_found), 'executables'))
85
84
            note("\t%s\t%s" % (_found(self.symlinks_found), 'symlinks'))
86
85
 
 
86
    def pre_handler(self, cmd):
 
87
        """Hook for logic before each handler starts."""
 
88
        dump = self.params.get('dump')
 
89
        if dump and cmd.name == dump:
 
90
            print "%s" % (cmd,)
 
91
 
87
92
    def progress_handler(self, cmd):
88
93
        """Process a ProgressCommand."""
89
94
        self.cmd_counts[cmd.name] += 1