Archive for the ‘Release 0.4’ Category

Func Verification Method – Release 0.4

February 2, 2009

This is the release 0.4 of my project.

The file is available at:

This is the method I am creating will verify the integrity of all the installed packages on a given system

def verify(self, flatten=True):
Returns information of the verification of all installed packages.
import subprocess
ts = rpm.TransactionSet()
mi = ts.dbMatch()
results = []
for hdr in mi:
name = hdr[‘name’]
if flatten:
results.append(“%s” % (name))
proc = subprocess.Popen([‘/bin/rpm -V ‘ + name], shell=True, stdout=subprocess.PIPE)
stdout_value = proc.communicate()[0]
results.append(“%s” % (stdout_value))
return results


func-logo-small1Func Project