Package daklib :: Module contents :: Class BinaryContentsScanner
[hide private]
[frames] | no frames]

Class BinaryContentsScanner

source code

BinaryContentsScanner provides a threadsafe method scan() to scan the contents of a DBBinary object.

Instance Methods [hide private]
 
__init__(self, binary_id)
The argument binary_id is the id of the DBBinary object that should be scanned.
source code
 
scan(self)
This method does the actual scan and fills in the associated BinContents property.
source code
Class Methods [hide private]
 
scan_all(class_, limit=None)
The class method scan_all() scans all binaries using multiple threads.
source code
Method Details [hide private]

scan(self)

source code 

This method does the actual scan and fills in the associated BinContents property. It commits any changes to the database. The argument dummy_arg is ignored but needed by our threadpool implementation.

scan_all(class_, limit=None)
Class Method

source code 

The class method scan_all() scans all binaries using multiple threads. The number of binaries to be scanned can be limited with the limit argument. Returns the number of processed and remaining packages as a dict.