Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def fedoraus::QAFunctions::srpm_internal_md5s (   self  ) 

Create hashes of the files internal to the srpm.

Definition at line 196 of file fedoraus.py.

00196                                 :
        '''Create hashes of the files internal to the srpm.
        '''
        if self.checklist.properties.has_key('fileMD5s'):
            try:
                srpmDir = self._expand_srpm()
            except FileError:
                # We were unable to expand the srpm, blank the MD5s and return
                self.checklist.properties['fileMD5s'] = ''
                return
            hasher = md5.new()
            fileHashes = self._hash_directory(srpmDir, hasher)
            del hasher

            output = []
            for files in fileHashes.keys():
                output.append(files + ' ' + fileHashes[files])
            self.checklist.properties['fileMD5s'] = "\n".join(output)

    ### FIXME: Unimplemented tests:


Generated by  Doxygen 1.6.0   Back to index