Added package methods to yum helper class

This commit is contained in:
Martin Gracik 2010-07-29 14:34:30 +02:00
parent 2dcd38c908
commit 86d7b2f804

View File

@ -610,6 +610,14 @@ class YumHelper(object):
pl = self.yb.doPackageLists(patterns=[pattern]) pl = self.yb.doPackageLists(patterns=[pattern])
return pl.installed, pl.available return pl.installed, pl.available
@property
def installed_packages(self):
pl = self.yb.doPackageLists()
return pl.installed
def get_file_list(self, package):
return package.returnFileEntries()
class RpmCallback(yum.rpmtrans.SimpleCliCallBack): class RpmCallback(yum.rpmtrans.SimpleCliCallBack):